-
-
Notifications
You must be signed in to change notification settings - Fork 75
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
ParserException: InvalidRegularExpression on valid regex #146
Comments
Another case: var match = text.match(/^(\s*)([^]*\S)(\s*)$/);
|
var regex = /{[^]*/gm,
|
const pathToArgumentName = input => {
return input
.replace(/\./g, "-")
.replace(/\[\]/g, "")
.replace(
/(\p{Uppercase_Letter}+|\p{Lowercase_Letter}|\d)(\p{Uppercase_Letter}+)/gu,
"$1-$2"
)
.replace(/-?[^\p{Uppercase_Letter}\p{Lowercase_Letter}\d]+/gu, "-")
.toLowerCase();
};
|
I also ran into this:
Throw:
But it's valid on the Esprima online parserpage: |
I was able to isolate the issue for all these reports to |
sebastienros
added a commit
that referenced
this issue
Jun 14, 2021
sebastienros
added a commit
that referenced
this issue
Jun 15, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Regular expression literal:
/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g
Source
@babel\parser\lib\index.js
index.zip
The text was updated successfully, but these errors were encountered: