From 237059ca9f40f6972a93ddb113d5d0b2f8f404d1 Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Tue, 18 Sep 2012 20:51:51 +0800 Subject: Bug 792007: profanivore should be case-insensitive --- extensions/Profanivore/Extension.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'extensions/Profanivore') diff --git a/extensions/Profanivore/Extension.pm b/extensions/Profanivore/Extension.pm index 9889cc043..87a35a3f7 100644 --- a/extensions/Profanivore/Extension.pm +++ b/extensions/Profanivore/Extension.pm @@ -43,7 +43,7 @@ sub bug_format_comment { $comment->author->id != Bugzilla->user->id) { push (@$regexes, { - match => RE_profanity(), + match => RE_profanity('-i'), replace => \&_replace_profanity }); } @@ -122,7 +122,7 @@ sub _fix_encoding { sub _filter_text { my $text = shift; - my $offensive = RE_profanity(); + my $offensive = RE_profanity('-i'); $text =~ s/$offensive/****/g; return $text; } -- cgit v1.2.3-24-g4f1b