From e0a7372f4f0365cf2c10802232f4b948e82e08ae Mon Sep 17 00:00:00 2001 From: tophf Date: Thu, 24 Sep 2020 16:22:28 +0300 Subject: [PATCH] enable starHack option --- js/moz-parser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/moz-parser.js b/js/moz-parser.js index 32a73afb..d79c4789 100644 --- a/js/moz-parser.js +++ b/js/moz-parser.js @@ -18,7 +18,7 @@ function parseMozFormat({code, styleId}) { 'regexp': 'regexps', }; const hasSingleEscapes = /([^\\]|^)\\([^\\]|$)/; - const parser = new parserlib.css.Parser(); + const parser = new parserlib.css.Parser({starHack: true}); const sectionStack = [{code: '', start: 0}]; const errors = []; const sections = [];