Changes between Version 6 and Version 7 of AutoWikifyPlugin


Ignore:
Timestamp:
Jan 10, 2008, 1:17:19 AM (16 years ago)
Author:
Sven Dowideit
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • AutoWikifyPlugin

    v6 v7  
    4242[http://trac-hacks.org/newticket?component=AutoWikifyPlugin&owner=athomas new ticket].
    4343
     44
     45== regex based wildcards in explicitly_wikify ==
     46If like me [wiki:SvenDowideit] you want to link to an external wiki (TWiki) and need a large set of non-CamelCase words (in this case our bug tracking system (of the style of Bugs.Item1234) the you can modify autowikify.py to remove the escaping of regex strings -
     47
     48change
     49{{{
     50        pattern = r'\b(?P<autowiki>' + '|'.join([re.escape(page) for page in pages]) + r')\b'
     51}}}
     52to
     53{{{
     54        pattern = r'\b(?P<autowiki>' + '|'.join([page for page in pages]) + r')\b'
     55}}}
     56
     57
    4458== Download ==
    4559