-
|
js的reg似乎只能在调用的时候传入标志? const reg = new RegExp('^help$', 'i'); |
Beta Was this translation helpful? Give feedback.
Answered by
Tsuk1ko
May 3, 2025
Replies: 2 comments
-
|
目前确实无法自定义 flag,考虑加上 |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
加了个 https://github.com/Tsuk1ko/cq-picsearcher-bot/wiki/%E9%99%84%E5%8A%A0%E5%8A%9F%E8%83%BD#regexpflags |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Tsuk1ko
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
加了个
regexpFlags参数https://github.com/Tsuk1ko/cq-picsearcher-bot/wiki/%E9%99%84%E5%8A%A0%E5%8A%9F%E8%83%BD#regexpflags