Index: trunk/tools/bugzilla/bugzilla-4.0/extensions/Wikimedia/Extension.pm |
— | — | @@ -39,11 +39,11 @@ |
40 | 40 | my $regexes = $args->{'regexes'}; |
41 | 41 | my $text = $args->{'text'}; |
42 | 42 | my $replacerWP = { |
43 | | - match => qr~\[\[([a-zA-Z0-9_ ,./'()!#%:\x80-\xff-]+)\]\]~, |
| 43 | + match => qr{\[\[([a-zA-Z0-9_ ,./'()!#%:\x80-\xff-]+)\]\]}, |
44 | 44 | replace => \&_createWikipediaLink |
45 | 45 | }; |
46 | 46 | my $replacerCR = { |
47 | | - match => qr~r(\d+)~, |
| 47 | + match => qr{r(\d+)}, |
48 | 48 | replace => \&_createCodeReviewLink |
49 | 49 | }; |
50 | 50 | #~\br(\d+)\b |
— | — | @@ -58,7 +58,7 @@ |
59 | 59 | sub _createWikipediaLink { |
60 | 60 | my $match_str = $1; |
61 | 61 | my $tmp = html_quote($match_str); |
62 | | - my $wikipedia_link = "<a href=\"http://en.wikipedia.org/wiki/$tmp\">$tmp</a>"; |
| 62 | + my $wikipedia_link = "[[<a href=\"http://en.wikipedia.org/wiki/$tmp\">$tmp</a>]]"; |
63 | 63 | return $wikipedia_link; |
64 | 64 | }; |
65 | 65 | |