Skip to content
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

Escape RegExp curly brace #16

Merged
merged 1 commit into from Feb 11, 2016
Merged

Conversation

myme
Copy link
Contributor

@myme myme commented Feb 11, 2016

Escape '}' in regular expression for better compatibility with other
JavaScript interpreters. It seems like Ducktype is not able to
properly parse brace-expansion due to the unescaped curly brace.

See: svaarala/duktape#74

Escape '}' in regular expression for better compatibility with other
JavaScript interpreters. It seems like `Ducktype` is not able to
properly parse `brace-expansion` due to the unescaped curly brace.

See: svaarala/duktape#74
@myme
Copy link
Contributor Author

myme commented Feb 11, 2016

I'm trying to use babel with Duktype. brace-expansion is a transitive dependency of babel and/or webpack (I didn't check exactly which one, but it's used several places). It seems like this single issue is all that's stopping this for working, as Duktype dies due to its stricter RegExp parser.

juliangruber added a commit that referenced this pull request Feb 11, 2016
Escape RegExp curly brace
@juliangruber juliangruber merged commit 09daa6c into juliangruber:master Feb 11, 2016
@juliangruber
Copy link
Owner

published a patch as 1.1.3, hopefully it floats up

@myme
Copy link
Contributor Author

myme commented Feb 11, 2016

Excellent. Hope that's all there is to it.

@myme
Copy link
Contributor Author

myme commented Feb 11, 2016

Seems to work here. Great stuff, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants