1
0
Fork 0
mirror of https://github.com/perlbot/perlbuut synced 2025-06-07 22:15:45 -04:00

removing the -1, for testing

This commit is contained in:
Ryan Voots 2010-03-12 16:40:46 -05:00
parent b16b9fc5ef
commit 46e20d0106

View file

@ -345,7 +345,7 @@ sub _fact_substitute
$realsubst =~ s/\$(\d+)/$caps[$1-1]/eg; $realsubst =~ s/\$(\d+)/$caps[$1-1]/eg;
substr $pred, $matchstart, $matchend-$matchstart, $realsubst; substr $pred, $matchstart, $matchend-$matchstart, $realsubst;
pos $pred = $matchstart+length($realsubst)-1; #set the new position, might have an off by one? pos $pred = $matchstart+length($realsubst); #set the new position, might have an off by one?
} }
return $pred; return $pred;