Skip to content

Commit

Permalink
make the param case_sensitive meaningless when
Browse files Browse the repository at this point in the history
using regex
  • Loading branch information
aahnik committed Jun 11, 2021
1 parent 409ef9a commit 18d6f3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tgcf/plugins/filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def __init__(self, data: Dict[str, Any]) -> None:
def case_correct(self) -> None:
textf: TextFilter = self.filters.text

if textf.case_sensitive is False:
if textf.case_sensitive is False and textf.regex is False:
textf.blacklist = [item.lower() for item in textf.blacklist]
textf.whitelist = [item.lower() for item in textf.whitelist]

Expand Down

0 comments on commit 18d6f3b

Please sign in to comment.