Simplify css-unwrap regexp
authorDuncan Beevers <duncan@dweebd.com>
Tue, 23 Dec 2014 18:30:25 +0000 (12:30 -0600)
committerDuncan Beevers <duncan@dweebd.com>
Tue, 23 Dec 2014 18:30:25 +0000 (12:30 -0600)
src/htmlminifier.js

index 2f346b6..d49387f 100644 (file)
   }
 
   function unwrapCSS(text) {
-    var matches = text.match(/^\*\{((.*|\n)*)\}$/m);
+    var matches = text.match(/^\*\{([\s\S]*)\}$/m);
     if (matches && matches[1]) {
       return matches[1];
     }