summaryrefslogtreecommitdiffstats
path: root/extensions/Profanivore
diff options
context:
space:
mode:
authorByron Jones <bjones@mozilla.com>2012-09-18 14:51:51 +0200
committerByron Jones <bjones@mozilla.com>2012-09-18 14:51:51 +0200
commit237059ca9f40f6972a93ddb113d5d0b2f8f404d1 (patch)
treefe8868f4b280c89586b8a319024ac9251f169742 /extensions/Profanivore
parentdc987268a6971eef1c17b4cadd2b61ad1ecc8d1a (diff)
downloadbugzilla-237059ca9f40f6972a93ddb113d5d0b2f8f404d1.tar.gz
bugzilla-237059ca9f40f6972a93ddb113d5d0b2f8f404d1.tar.xz
Bug 792007: profanivore should be case-insensitive
Diffstat (limited to 'extensions/Profanivore')
-rw-r--r--extensions/Profanivore/Extension.pm4
1 files changed, 2 insertions, 2 deletions
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;
}