r86427 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r86426‎ | r86427 | r86428 >
Date:19:55, 19 April 2011
Author:pdhanda
Status:deferred
Tags:
Comment:
Better regex for wikipedia links. After deployment to production, should fix bug 5268 and bug 21984
Modified paths:
  • /trunk/tools/bugzilla/bugzilla-4.0/extensions/Wikimedia/Extension.pm (modified) (history)

Diff [purge]

Index: trunk/tools/bugzilla/bugzilla-4.0/extensions/Wikimedia/Extension.pm
@@ -39,7 +39,7 @@
4040 my $regexes = $args->{'regexes'};
4141 my $text = $args->{'text'};
4242 my $replacerWP = {
43 - match => qr{\[\[([a-zA-Z0-9_ ,./'()!#%:\x80-\xff-]+)\]\]},
 43+ match => qr{\[\[([a-zA-Z0-9_ ,./'()!#\*\$%:\x80-\xff-]+)\]\]},
4444 replace => \&_createWikipediaLink
4545 };
4646 my $replacerCR = {

Status & tagging log