We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f671694 commit 9dad98dCopy full SHA for 9dad98d
āsrc/minifier.tsā
@@ -28,7 +28,7 @@ const log = (): void => {
28
}
29
30
const commentRegex = /((?<!(http:|https:))\/\/.*)|(\/\*[^!][\s\S]*?\*\/)/g
31
-const unnecessaryWhitespaceRegex = /(?<!\w)\s+|\s+(?=[{}>,;])/g
+const unnecessaryWhitespaceRegex = /(?<![\w}])\s+|\s+(?=[{}>,;])/g
32
const expressionPlaceholderRegex = /\${EXP\d+}/g
33
const specialCssValueRegex = /(?:(['"])((\\\1|[\s\S])*?)\1)|(calc|url)\([\s\S]*?\)(?=;)/g
34
0 commit comments