Some regex query returned invalid even if it's not #9185
-
I tried following regex |
Beta Was this translation helpful? Give feedback.
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.
-
Hello, thanks or pointing out! Maybe someone from @github pick this up. |
Beta Was this translation helpful? Give feedback.
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.