Commit 76a5d281 authored by Vitaly Lipatov's avatar Vitaly Lipatov

Template.pm: add regexp fixes

parent cd6911da
......@@ -313,6 +313,31 @@ sub quoteUrls {
~get_bug_link($1, $1, { user => $user })
~egmx;
# # make eterbug number link to bug
# $bug_re = qr/eterbug$s*\#?$s*([0-9]+)/i;
# # hack: user prev comment_re
# $text =~ s~($bug_re)
# ~ # We have several choices. $1 here is the link, and $2-4 are set
# # depending on which part matched
# get_bug_link($2, $1, { user => $user })
# ~egx;
#
# # make # number link to bug
# #$bug_re = qr/[^&]\#$s*([0-9]+)/i;
# $bug_re = qr/\#$s*([0-9]+)/i;
# #my $bug_ren = qr/\QTOG\E$s*\#?$s*([0-9]+)/i;
# # hack: user prev comment_re
# $text =~ s~($bug_re)
# ~ # We have several choices. $1 here is the link, and $2-4 are set
# # depending on which part matched
# get_bug_link($2, $1, { user => $user })
# ~egx;
#
#
# # Old duplicate markers. These don't use $bug_word because they are old
# # and were never customizable.
# $text =~ s~(?<=^\*\*\*\ This\ bug\ has\ been\ marked\ as\ a\ duplicate\ of\ )
# Now remove the encoding hacks in reverse order
for (my $i = $#things; $i >= 0; $i--) {
$text =~ s/\x{FDD2}($i)\x{FDD3}/$things[$i]/eg;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment