You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An empty regular expression such as // is invalid and parsed as a line comment instead, which breaks other syntax within the code. I would expect the better-regex rule to not propose code with empty regular expressions.
The following is a minimal example:
constexpression=/|/;
I would expect this expression to be corrected to something like:
constexpression=/(?:)/;
The text was updated successfully, but these errors were encountered:
An empty regular expression such as
//
is invalid and parsed as a line comment instead, which breaks other syntax within the code. I would expect thebetter-regex
rule to not propose code with empty regular expressions.The following is a minimal example:
I would expect this expression to be corrected to something like:
The text was updated successfully, but these errors were encountered: