Changes between Version 12 and Version 13 of AutoWikifyPlugin
- Timestamp:
- Jul 28, 2012, 3:29:30 AM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
AutoWikifyPlugin
v12 v13 45 45 [http://trac-hacks.org/newticket?component=AutoWikifyPlugin&owner=rjollos new ticket]. 46 46 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 change52 {{{53 #!python54 pattern = r'\b(?P<autowiki>' + '|'.join([re.escape(page) for page in pages]) + r')\b'55 }}}56 to57 {{{58 #!python59 pattern = r'\b(?P<autowiki>' + '|'.join([page for page in pages]) + r')\b'60 }}}61 62 63 47 == Download == 64 48