1
0
Fork 0
mirror of https://github.com/perlbot/perlbuut synced 2025-06-09 05:15:42 -04:00

think i found it

This commit is contained in:
Ryan Voots 2010-03-12 16:38:23 -05:00
parent 46dbde2776
commit 558fe19599

View file

@ -336,7 +336,7 @@ sub _fact_substitute
{ {
my $regex = $flags=~/i/ ? qr/(?i:$match)/i : qr/$match/; my $regex = $flags=~/i/ ? qr/(?i:$match)/i : qr/$match/;
while ($pred =~ /\G$regex/g) while ($pred =~ /$regex/g)
{ {
my $matchedstring = substr($pred, $-[0], $+[0] - $-[0]); my $matchedstring = substr($pred, $-[0], $+[0] - $-[0]);
my ($matchstart, $matchend) = ($-[0], $+[0]); my ($matchstart, $matchend) = ($-[0], $+[0]);