diff options
| author | 2018-07-30 14:40:48 +0200 | |
|---|---|---|
| committer | 2018-07-30 14:40:48 +0200 | |
| commit | a0bd77674eabd03ac76260eb440217426b7e28ca (patch) | |
| tree | ac32323ed9f4d868d05c524e54a483bcb009460a | |
| parent | Okay, this should be ready to MR now. (diff) | |
Case insensitive URL filtering
| -rw-r--r-- | bot/cogs/filtering.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/cogs/filtering.py b/bot/cogs/filtering.py index d9cb2bb82..c6da923ae 100644 --- a/bot/cogs/filtering.py +++ b/bot/cogs/filtering.py @@ -168,11 +168,11 @@ class Filtering: the blacklisted URLs from the config file. """ - if not re.search(URL_RE, text): + if not re.search(URL_RE.lower(), text.lower()): return False for url in Filter.domain_blacklist: - if url in text: + if url.lower() in text.lower(): return True return False |