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

Fix incorrect string quoting issues #177

Merged
merged 2 commits into from
Mar 29, 2016
Merged

Fix incorrect string quoting issues #177

merged 2 commits into from
Mar 29, 2016

Conversation

ammojamo
Copy link

Fixes #149

String parsing was previously just assuming any single or double quote character encountered outside a comment was the start or end of a javascript string.

This PR correctly matches start and end quotes of javascript strings, and accounts for escaped quotes inside a string.

Have also added a somewhat comprehensive test case.

Correctly match start and end quotation character and ignore escaped quotation characters.
@Twipped
Copy link
Collaborator

Twipped commented Mar 29, 2016

Awesome, thank you very much!

@Twipped Twipped merged commit 7d9f8f9 into tj:master Mar 29, 2016
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