Changes between Version 12 and Version 13 of AutoWikifyPlugin


Ignore:
Timestamp:
Jul 28, 2012, 5:29:30 AM (2 years ago)
Author:
rjollos
Comment:

Removed note about hacking up the source code. I can't understand the authors intent.

Legend:

Unmodified
Added
Removed
Modified
  • AutoWikifyPlugin

    v12 v13  
    4545[http://trac-hacks.org/newticket?component=AutoWikifyPlugin&owner=rjollos new ticket].
    4646
    47 
    48 == Regex based wildcards in explicitly_wikify ==
    49 If, 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 -
    50 
    51 change
    52 {{{
    53 #!python
    54 pattern = r'\b(?P<autowiki>' + '|'.join([re.escape(page) for page in pages]) + r')\b'
    55 }}}
    56 to
    57 {{{
    58 #!python
    59 pattern = r'\b(?P<autowiki>' + '|'.join([page for page in pages]) + r')\b'
    60 }}}
    61 
    62 
    6347== Download ==
    6448