From 9f3096226a8cbc9caeb7e763a210de0e1e04fe17 Mon Sep 17 00:00:00 2001 From: Duncan Beevers Date: Tue, 23 Dec 2014 12:30:25 -0600 Subject: [PATCH] Simplify css-unwrap regexp --- src/htmlminifier.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/htmlminifier.js b/src/htmlminifier.js index 2f346b6..d49387f 100644 --- 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]; } -- 2.34.1