Skip to content
This repository has been archived by the owner on Feb 22, 2018. It is now read-only.

fix(relative_url_resolver): Fix match of CSS urls to match only first url #1697

Closed
wants to merge 1 commit into from

Conversation

TedSander
Copy link
Contributor

Change CSS URL matcher to be lazy instead of greedy. This fixes css url
matching where minification is involved and matches too much. Also escape
parenthesis in a URL test as it creates invalid CSS imports as defined here
http://www.w3.org/TR/CSS2/syndata.html#value-def-uri

@@ -242,7 +242,7 @@ void main() {
_run_resolver(useRelativeUrls: false);
});

describe('url_resolver uri rewrite', () {
group('url_resolver', () {
Copy link
Contributor

Choose a reason for hiding this comment

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

Why change describe to group?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sorry jumping between unittest and jasmine syntax too much. I'll change it back to describe.

chirayuk pushed a commit to chirayuk/angular.dart that referenced this pull request Mar 30, 2015
… url

Change CSS URL matcher to be lazy instead of greedy. This fixes css url
matching where minification is involved and matches too much. Also escape
parenthesis in a URL test as it creates invalid CSS imports as defined here
http://www.w3.org/TR/CSS2/syndata.html#value-def-uri

Closes dart-archive#1697
… url

Change CSS URL matcher to be lazy instead of greedy. This fixes css url
matching where minification is involved and matches too much. Also escape
parenthesis in a URL test as it creates invalid CSS imports as defined here
http://www.w3.org/TR/CSS2/syndata.html#value-def-uri
@TedSander
Copy link
Contributor Author

Done Switched to Jasmine Syntax.

chirayuk pushed a commit that referenced this pull request Mar 31, 2015
… url

Change CSS URL matcher to be lazy instead of greedy. This fixes css url
matching where minification is involved and matches too much. Also escape
parenthesis in a URL test as it creates invalid CSS imports as defined here
http://www.w3.org/TR/CSS2/syndata.html#value-def-uri

Closes #1697
@chirayuk chirayuk closed this in c7a3021 Mar 31, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

Successfully merging this pull request may close these issues.

3 participants