From 558fe19599c6775e11a0bb3d3e97415b0374bc1f Mon Sep 17 00:00:00 2001 From: Ryan Voots Date: Fri, 12 Mar 2010 16:38:23 -0500 Subject: [PATCH] think i found it --- plugins/factoids.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/factoids.pm b/plugins/factoids.pm index 7fe8314..b4a559f 100644 --- a/plugins/factoids.pm +++ b/plugins/factoids.pm @@ -336,7 +336,7 @@ sub _fact_substitute { 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 ($matchstart, $matchend) = ($-[0], $+[0]);