Changeset 729

Show
Ignore:
Timestamp:
04/29/06 01:46:37 (3 years ago)
Author:
athomas
Message:

AutoWikifyPlugin:

Only match page names on word boundaries.

Files:

Legend:

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

    r728 r729  
    4545    # Internal methods 
    4646    def _update(self): 
    47         pattern = '(?P<autowiki>' + '|'.join(self.pages) + ')
     47        pattern = r'\b(?P<autowiki>' + '|'.join(self.pages) + r')\b
    4848        self.pages_re = pattern 
    4949        WikiSystem(self.env)._compiled_rules = None