mirror of
https://github.com/Rongronggg9/SlashBot.git
synced 2025-02-11 19:03:29 +08:00
feat: loosen random sticker regex
This commit is contained in:
parent
7b512762fc
commit
d9e2289b49
@ -40,9 +40,7 @@ pinParser = re.compile(
|
|||||||
r'^[\\/]_?pin$'
|
r'^[\\/]_?pin$'
|
||||||
)
|
)
|
||||||
randomStickerParser = re.compile(
|
randomStickerParser = re.compile(
|
||||||
r'^([\\/])'
|
r'^([\\/]_?){2,}$'
|
||||||
r'(_?)'
|
|
||||||
r'(\1\2?)+$'
|
|
||||||
)
|
)
|
||||||
|
|
||||||
convertEscapes = partial(re.compile(r'\\(\s)').sub, r'\1')
|
convertEscapes = partial(re.compile(r'\\(\s)').sub, r'\1')
|
||||||
|
Loading…
Reference in New Issue
Block a user