Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

搜图模式的正则无法匹配斜杠,语言库的正常 #344

Closed
Miuzarte opened this issue Jul 21, 2022 · 3 comments
Closed

搜图模式的正则无法匹配斜杠,语言库的正常 #344

Miuzarte opened this issue Jul 21, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@Miuzarte
Copy link

image
image
image
image
没有报错
image

@Miuzarte
Copy link
Author

因为你自己写了一个不带斜杠的匹配

image

就是写了个不带斜杠的匹配才有
image

@Tsuk1ko
Copy link
Owner

Tsuk1ko commented Jul 21, 2022

哦看错了,我看看

另外,这是字符串形式的正则表达式,斜杠可以不用转义

另另外,json 中如果你要输反斜杠应当 \\,你这里写的 \/ parse 之后仍然是 /,虽然结果上由于上一条所述所以并没有产生错误

@Tsuk1ko
Copy link
Owner

Tsuk1ko commented Jul 21, 2022

想起来了,以前为了兼容其他机器人,指令会忽略 /< 开头,我出个配置自定义好了

@Tsuk1ko Tsuk1ko added the bug Something isn't working label Jul 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants