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

Handle invalid extra closing brace #99

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

pocketjoso
Copy link

@pocketjoso pocketjoso commented Jul 30, 2016

Hi,
Thanks again for the great tool, using it a lot nowadays. The issue raised in #98 has been bothering me quite a lot, since the output from css is clearly wrong, but no error is raised. I have tried to adhere to your code style, and I added a (now) passing unit test.

If you have issues with the written code but agree that the problem should be fixed, just give me guidance and I can re-write it. I hope we can get this merged in.

Cheers

@pocketjoso
Copy link
Author

By the way this PR solves the same problem as #96, but in my opinion in a cleaner way, and comes with an issue and a unit test.

I have been using this fix in production for my projects for a while.

@pocketjoso
Copy link
Author

Added recursion so the parser handles any number of extra invalid closing braces.

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.

1 participant