-
Notifications
You must be signed in to change notification settings - Fork 68
Better Attr Parsing #28
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
Conversation
Major performance improvment plus support for boolean attr and quotes.
tests for hyphens and colons
|
Hello @HenrikJoreteg and @frontmesh we have three people who think this change would be great, and it fixes multiple issues. We've added tests and they pass. Could we get a review & merge, please? Thanks! |
kranges
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hoping to come back to the regex and clean it up eventually but it is officially running on production.
pconerly
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. @kranges this branch was running on my production too :D
Boasting a major performance gain this PR also allows opposite quotes inside of attributes ("'something'" or '"something"') and Boolean attributes.
This is a more thorough solution to the problems presented in #13 and #19.