Fixed code escaping warning.
authorGoalSmashers <jakub@goalsmashers.com>
Fri, 21 Dec 2012 23:05:31 +0000 (00:05 +0100)
committerGoalSmashers <jakub@goalsmashers.com>
Fri, 21 Dec 2012 23:05:54 +0000 (00:05 +0100)
lib/clean.js

index bf6a4d8..19d4262 100644 (file)
@@ -169,7 +169,7 @@ var CleanCSS = {
       var colorSwitcher = function(match, prefix, colorValue, suffix) {
         return prefix + CleanCSS.colors[type][colorValue] + suffix;
       };
-      replace(new RegExp("([ :,\(])" + pattern + "([;\\}!\\) ])", 'g'), colorSwitcher);
+      replace(new RegExp("([ :,\\(])" + pattern + "([;\\}!\\) ])", 'g'), colorSwitcher);
       replace(new RegExp("(,)" + pattern + "(,)", 'g'), colorSwitcher);
     });