diff options
| author | 2024-01-26 01:16:06 -0800 | |
|---|---|---|
| committer | 2024-01-26 09:16:06 +0000 | |
| commit | 3d28a859bb0c42ef131fdaf910ae0cfdcaa768fb (patch) | |
| tree | 47dfcc210a9c532f511cce1055db2a65c0537595 | |
| parent | Bump pip-licenses from 4.3.3 to 4.3.4 (#2893) (diff) | |
Update URL regex in embed filter (#2896)
| -rw-r--r-- | bot/exts/filtering/_filters/unique/rich_embed.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/exts/filtering/_filters/unique/rich_embed.py b/bot/exts/filtering/_filters/unique/rich_embed.py index cfed18e64..cbcc90272 100644 --- a/bot/exts/filtering/_filters/unique/rich_embed.py +++ b/bot/exts/filtering/_filters/unique/rich_embed.py @@ -8,7 +8,7 @@ from bot.utils.helpers import remove_subdomain_from_url log = get_logger(__name__) -URL_RE = re.compile(r"(https?://\S+)", flags=re.IGNORECASE) +URL_RE = re.compile(r"(https?://[^\)\s]+)", flags=re.IGNORECASE) class RichEmbedFilter(UniqueFilter): |