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 corner case in parser performance #510

Merged
merged 3 commits into from
Feb 29, 2016
Merged

fix corner case in parser performance #510

merged 3 commits into from
Feb 29, 2016

Conversation

alexlamsl
Copy link
Collaborator

See #507 - the markup in question causes startTag regex to spend a disproportionately long time before erring out.

@alexlamsl
Copy link
Collaborator Author

rebased

@@ -61,6 +61,35 @@

// https://github.com/kangax/html-minifier/issues/229
equal(minify('<CUSTOM-TAG></CUSTOM-TAG><div>Hello :)</div>'), '<custom-tag></custom-tag><div>Hello :)</div>');

input = '<tag v-ref:vm_pv :imgs=" objpicsurl_ "></tag>';
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should link to an issue or describe what an issue is coz it's difficult to understand what's being tested otherwise.

@alexlamsl
Copy link
Collaborator Author

@kangax rebased and added comments to issues

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