From: GoalSmashers Date: Fri, 21 Dec 2012 23:05:31 +0000 (+0100) Subject: Fixed code escaping warning. X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=3f875c7517fb903285c8b19bc0d6440901e08bf3;p=clean-css.git Fixed code escaping warning. --- diff --git a/lib/clean.js b/lib/clean.js index bf6a4d8c..19d42624 100644 --- a/lib/clean.js +++ b/lib/clean.js @@ -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); });