Fix filters to handle multiple slashes
This commit is contained in:
parent
0184d89d38
commit
f371f796db
2 changed files with 3 additions and 3 deletions
|
@ -2,13 +2,13 @@
|
|||
import re
|
||||
|
||||
invites = re.compile(
|
||||
r"(?:discord.?(?:gg|io|me|li)|discord(?:app)?.?com[/\\]?(?:invite))[/\\]?([^\s/]+?)(?=\b)",
|
||||
r"(?:discord.?(?:gg|io|me|li)|discord(?:app)?.?com[/\\]{1,}?(?:invite))[/\\]{1,}?([^\s/]+?)(?=\b)",
|
||||
flags=re.IGNORECASE,
|
||||
)
|
||||
|
||||
custom_emote = re.compile(r"<:\w+:(\d+)>$", flags=re.IGNORECASE)
|
||||
|
||||
valid_text = re.compile(r"[\w\s\-\\/.!@#$%^*()+=<>,\u0080-\U000E0FFF]*", flags=re.IGNORECASE)
|
||||
valid_text = re.compile(r"[\w\s\-\\/.!@#$%^*'\"()+=<>,\u0080-\U000E0FFF]*", flags=re.IGNORECASE)
|
||||
|
||||
url = re.compile(
|
||||
r"(?:https?:\/\/(?:www\.)?)?(?P<domain>[-a-z0-9@:%._\+~#=]{1,256}\.[a-z0-9()]{1,6})\b(?:[-a-z0-9()@:%_\+.~#?&//=]*)",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[tool.poetry]
|
||||
name = "jarvis-core"
|
||||
version = "0.8.2"
|
||||
version = "0.8.3"
|
||||
description = "JARVIS core"
|
||||
authors = ["Zevaryx <zevaryx@gmail.com>"]
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue