Skip to content

Commit

Permalink
Finilization of regex case
Browse files Browse the repository at this point in the history
  • Loading branch information
ulmentflam committed Aug 11, 2017
1 parent 78284bc commit 7467f55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion naughty_words/filters/common_substitutions.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def filter(self, text: str,
if alpha_num_word is '':
continue
pattern = self.profanity_expression(alpha_num_word, character_substitutions)
if re.search(pattern, text):
if re.search(pattern, text, re.IGNORECASE):
if raise_on_match:
raise ProfanityException()
elif only_first:
Expand Down

0 comments on commit 7467f55

Please sign in to comment.