Changeset 730

Show
Ignore:
Timestamp:
04/29/06 02:08:36 (3 years ago)
Author:
athomas
Message:

Only match pages that are >= 3 characters in length.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • autowikifyplugin/trunk/tracautowikify/autowikify.py

    r729 r730  
    4545    # Internal methods 
    4646    def _update(self): 
    47         pattern = r'\b(?P<autowiki>' + '|'.join(self.pages) + r')\b' 
     47        pattern = r'\b(?P<autowiki>' + '|'.join([p for p in self.pages if len(p) >= 3]) + r')\b' 
    4848        self.pages_re = pattern 
    4949        WikiSystem(self.env)._compiled_rules = None