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

Properly escape \u2028 and \u2029. #185

Merged
merged 2 commits into from
Jun 16, 2014
Merged

Conversation

drwrf
Copy link
Contributor

@drwrf drwrf commented Jun 10, 2014

Javascript will treat these characters as new lines when parsing
code which can result in a syntax error.

Javascript will treat these characters as new lines when parsing
code which can result in a syntax error.
@drwrf
Copy link
Contributor Author

drwrf commented Jun 12, 2014

Anyone available to look at this? @sayrer? @fat?

@sayrer
Copy link
Collaborator

sayrer commented Jun 13, 2014

Seems like a good patch--needs a test, though.

@drwrf
Copy link
Contributor Author

drwrf commented Jun 13, 2014

@sayrer I'm on it.

@drwrf
Copy link
Contributor Author

drwrf commented Jun 16, 2014

@sayrer Tests added. I can confirm the tests were failing before the patch as well.

sayrer added a commit that referenced this pull request Jun 16, 2014
Properly escape \u2028 and \u2029.
@sayrer sayrer merged commit 41c76fa into twitter:master Jun 16, 2014
@drwrf
Copy link
Contributor Author

drwrf commented Jun 16, 2014

@sayrer Thanks for merging! When do you think we can cut a release? This is causing issues for us downstream.

@sayrer
Copy link
Collaborator

sayrer commented Jun 18, 2014

This is in v3.0.2

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.

2 participants