Permalink
Browse files

don't remove spaces in url() - fix #7

  • Loading branch information...
1 parent ef39f24 commit 6a543d716e9012952682526f231938bf68972645 @fmarcia committed Oct 8, 2013
Showing with 2 additions and 2 deletions.
  1. +1 −1 package.json
  2. +1 −1 uglifycss-lib.js
View
2 package.json
@@ -2,7 +2,7 @@
"author": "Franck Marcia <franck.marcia@gmail.com> (https://github.com/fmarcia)",
"name": "uglifycss",
"description": "Port of YUI CSS Compressor to NodeJS",
- "version": "0.0.6",
+ "version": "0.0.7",
"license": "MIT",
"homepage": "https://github.com/fmarcia/UglifyCSS",
"repository": {
View
2 uglifycss-lib.js
@@ -97,7 +97,7 @@ var util = require('util'),
if (foundTerminator) {
token = css.substring(startIndex, endIndex);
- token = token.replace(/\s+/g, "");
+ token = token.replace(/(^\s*|\s*$)/g, "");
preservedTokens.push(token);
preserver = "url(___PRESERVED_TOKEN_" + (preservedTokens.length - 1) + "___)";

0 comments on commit 6a543d7

Please sign in to comment.