From ed4b6afc9b3b43e1f7e70ff01a77472c7983a549 Mon Sep 17 00:00:00 2001 From: joey Date: Fri, 28 Sep 2007 20:50:20 +0000 Subject: * camelcase: Tighten regexp to avoid false positives. WikiWords are only linkified now if they are preceeded by whitespace. --- IkiWiki/Plugin/camelcase.pm | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'IkiWiki/Plugin/camelcase.pm') diff --git a/IkiWiki/Plugin/camelcase.pm b/IkiWiki/Plugin/camelcase.pm index dc89f1b90..845a516ee 100644 --- a/IkiWiki/Plugin/camelcase.pm +++ b/IkiWiki/Plugin/camelcase.pm @@ -16,10 +16,11 @@ sub filter (@) { #{{{ # Make CamelCase links work by promoting them to fullfledged # WikiLinks. This regexp is based on the one in Text::WikiFormat. $params{content}=~s{ - (?=]) # try to avoid expanding non-links - # with a zero width negative lookbehind for - # characters that suggest it's not a link - \b # word boundry + (?