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 of big Regexp issue #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

anton-ryzhov
Copy link

Previously cssPropertyMatcher did desperately wrong job. It matched too much, too slow.
Test this css for example https://raw.githubusercontent.com/twbs/bootstrap/v3.2.0/dist/css/bootstrap.css

Because of this excludeProperties didn't work in some cases. And unitests was fixed up to this issue.

I've fixed regexp and related thing.

excludeProperties fix
Correct unittest, expects skipping of `behavior`
@timaschew
Copy link

the time difference is factor 10, so 300ms vs 3000ms

@anton-ryzhov
Copy link
Author

@timaschew, yes, 10 sec vs 1 sec in my case (building bootstrap.css with component.io). Pretty painful and unusable.

timaschew added a commit to componentjs/builder2.js that referenced this pull request Oct 5, 2014
@henrrrik
Copy link

+1. We've been bit by this (via grunt-cdnify).

joakim added a commit to joakim/css-url-rewriter that referenced this pull request Oct 14, 2014
joakim added a commit to joakim/css-url-rewriter that referenced this pull request Oct 14, 2014
Fix bug not matching URLs on the same line as the opening bracket ({).

Manually merged with PR callumlocke#7.
stevenyxu added a commit to tatcha/grunt-cdnify that referenced this pull request Nov 7, 2014
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.

3 participants