From 46dbde2776cdd94f30395cbcf5b953d8d5dab589 Mon Sep 17 00:00:00 2001 From: Ryan Voots Date: Fri, 12 Mar 2010 16:34:59 -0500 Subject: [PATCH] wtf? --- plugins/factoids.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/factoids.pm b/plugins/factoids.pm index 191ff9c..7fe8314 100644 --- a/plugins/factoids.pm +++ b/plugins/factoids.pm @@ -345,7 +345,7 @@ sub _fact_substitute $realsubst =~ s/\$(\d+)/$caps[$1-1]/eg; substr $pred, $matchstart, $matchend-$matchstart, $realsubst; - pos $pred = $matchstart+length($realsubst); #set the new position, might have an off by one? + pos $pred = $matchstart+length($realsubst)-1; #set the new position, might have an off by one? } return "G:$regex:$flags:$match:$subst:".$pred;