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

Make backslash, tab, newline, etc. be processed properly #22

Merged
merged 3 commits into from
Apr 25, 2020

Conversation

magurotuna
Copy link
Contributor

This PR fixes #17. (See also #18)

In addition to backslash, \t, \n, \r, and \" were also processed incorrectly.
To solve this problem, I added a new implementation to unescape function. It looks to be working as it should do, but actually I'm not sure my patch is covering all possible cases.

Should there be more tests? or it's already sufficient?

@hatoo
Copy link
Owner

hatoo commented Apr 25, 2020

Awesome! LGTM!

@hatoo hatoo merged commit 3bfe1e8 into hatoo:master Apr 25, 2020
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.

Backslash on doc comment is wrongly escaped
2 participants