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

new RegExp broken with concat unicode string #370

Closed
jhen0409 opened this issue Jan 10, 2017 · 2 comments
Closed

new RegExp broken with concat unicode string #370

jhen0409 opened this issue Jan 10, 2017 · 2 comments

Comments

@jhen0409
Copy link
Contributor

REPL link

var ws = '\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003' +
           '\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028' +
           '\u2029\uFEFF';
new RegExp('^[' + ws + '][' + ws + ']*')

Run the output on console, will throw the error:

Uncaught SyntaxError: Invalid regular expression: missing /

I got this problem from jhen0409/react-native-debugger#35, it bundled ramda/src/trim.js.

@jhen0409
Copy link
Contributor Author

Looks like it has been fixed by #304, any news for release?

@boopathi
Copy link
Member

It's released

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

No branches or pull requests

2 participants