Fixes #464 - handling escaped braces in URLs.
authorJakub Pawlowicz <contact@jakubpawlowicz.com>
Mon, 2 Mar 2015 23:38:13 +0000 (23:38 +0000)
committerJakub Pawlowicz <contact@jakubpawlowicz.com>
Tue, 3 Mar 2015 14:25:43 +0000 (14:25 +0000)
commitda15cf6601eaafdfa313486728a9af6a752d77c6
treea357bed7d085a4979e14f60c77e25ec1314ff904
parentd77533a83aa2f0dd81da01dec98287afd09a28e8
Fixes #464 - handling escaped braces in URLs.

It was properly handled in URL processor but not URL rewriter.

This fix extracts a UrlScanner class with algorithm from URL processor
and reuses it in URL rewriter.

Technically it should be a fix not such a "major" refactor, but bending
the rules shouldn't hurt :-).
History.md
lib/images/url-rewriter.js
lib/imports/inliner.js
lib/text/urls-processor.js
lib/utils/source-reader.js
lib/utils/url-scanner.js [new file with mode: 0644]
test/fixtures/issue-464-min.css [new file with mode: 0644]
test/fixtures/issue-464.css [new file with mode: 0644]