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/) {