diff options
| author | 2019-10-21 12:58:26 +0100 | |
|---|---|---|
| committer | 2019-10-21 12:58:26 +0100 | |
| commit | e731db98569d55051b944278221449a206992850 (patch) | |
| tree | 63817339f8249ab32837dfd283d04266958ae1f9 | |
| parent | Check partially hidden words against the wordlist (diff) | |
Update spoiler regex to support multi-line spoilers
| -rw-r--r-- | bot/cogs/filtering.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/cogs/filtering.py b/bot/cogs/filtering.py index 875276d8a..fd90ff836 100644 --- a/bot/cogs/filtering.py +++ b/bot/cogs/filtering.py @@ -26,7 +26,7 @@ INVITE_RE = re.compile( flags=re.IGNORECASE ) -SPOILER_RE = re.compile(r"(\|\|.+?\|\|)") +SPOILER_RE = re.compile(r"(\|\|.+?\|\|)", re.DOTALL) URL_RE = re.compile(r"(https?://[^\s]+)", flags=re.IGNORECASE) ZALGO_RE = re.compile(r"[\u0300-\u036F\u0489]") |