public
/
clean-css.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8c90449
)
Fixed code escaping warning.
author
GoalSmashers
<jakub@goalsmashers.com>
Fri, 21 Dec 2012 23:05:31 +0000
(
00:05
+0100)
committer
GoalSmashers
<jakub@goalsmashers.com>
Fri, 21 Dec 2012 23:05:54 +0000
(
00:05
+0100)
lib/clean.js
patch
|
blob
|
history
diff --git
a/lib/clean.js
b/lib/clean.js
index
bf6a4d8
..
19d4262
100644
(file)
--- 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);
});