From 6def2adcf4f098c00f2bb1769a802ce4d720c7b3 Mon Sep 17 00:00:00 2001 From: Ryan Voots Date: Fri, 12 Mar 2010 15:59:45 -0500 Subject: [PATCH] trying to make /i work right --- plugins/factoids.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/factoids.pm b/plugins/factoids.pm index ba89c87..a6c5284 100644 --- a/plugins/factoids.pm +++ b/plugins/factoids.pm @@ -338,7 +338,7 @@ sub _fact_substitute } else { - my $regex = $flags=~/i/ ? qr/$match/i : qr/$match/; + my $regex = $flags=~/i/ ? qr/(?i)$match/ : qr/$match/; if ($pred =~ m/$regex/) {