Some regex query returned invalid even if it's not #9185
Answered
by
svick
r0ny123
asked this question in
Code Search and Navigation
-
I tried following regex |
Beta Was this translation helpful? Give feedback.
Answered by
svick
Dec 21, 2021
Replies: 2 comments
-
It's a valid regex in JS, but each regex engine is a bit different. Even if you switch the engine on RegExr, it will give you an error (it seems you can't have an empty negated character set). Though it would be nice if GitHub would produce a better error. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
r0ny123
-
Hello, thanks or pointing out! Maybe someone from @github pick this up. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It's a valid regex in JS, but each regex engine is a bit different. Even if you switch the engine on RegExr, it will give you an error (it seems you can't have an empty negated character set).
Though it would be nice if GitHub would produce a better error.