mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2026-10-08 21:30:01 +08:00
fix bug
This commit is contained in:
@@ -184,7 +184,8 @@ async def _(
|
|||||||
problem_image: Message = Arg("problem_image"),
|
problem_image: Message = Arg("problem_image"),
|
||||||
):
|
):
|
||||||
try:
|
try:
|
||||||
if word_type == "正则":
|
if word_type == "正则" and problem:
|
||||||
|
problem = unescape(problem)
|
||||||
try:
|
try:
|
||||||
re.compile(problem)
|
re.compile(problem)
|
||||||
except re.error:
|
except re.error:
|
||||||
|
|||||||
Reference in New Issue
Block a user