public
/
html-minifier.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
90974d5
)
Simplify css-unwrap regexp
author
Duncan Beevers
<duncan@dweebd.com>
Tue, 23 Dec 2014 18:30:25 +0000
(12:30 -0600)
committer
Duncan Beevers
<duncan@dweebd.com>
Tue, 23 Dec 2014 18:30:25 +0000
(12:30 -0600)
src/htmlminifier.js
patch
|
blob
|
history
diff --git
a/src/htmlminifier.js
b/src/htmlminifier.js
index
2f346b6
..
d49387f
100644
(file)
--- a/
src/htmlminifier.js
+++ b/
src/htmlminifier.js
@@
-273,7
+273,7
@@
}
function unwrapCSS(text) {
- var matches = text.match(/^\*\{(
(.*|\n)
*)\}$/m);
+ var matches = text.match(/^\*\{(
[\s\S]
*)\}$/m);
if (matches && matches[1]) {
return matches[1];
}