Skip to content

Commit 9dad98d

Browse files
committed
fix: šŸ› a white space after '}' is now preserved to ensure animation template literal works properly
1 parent f671694 commit 9dad98d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ā€Žsrc/minifier.tsā€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const log = (): void => {
2828
}
2929

3030
const commentRegex = /((?<!(http:|https:))\/\/.*)|(\/\*[^!][\s\S]*?\*\/)/g
31-
const unnecessaryWhitespaceRegex = /(?<!\w)\s+|\s+(?=[{}>,;])/g
31+
const unnecessaryWhitespaceRegex = /(?<![\w}])\s+|\s+(?=[{}>,;])/g
3232
const expressionPlaceholderRegex = /\${EXP\d+}/g
3333
const specialCssValueRegex = /(?:(['"])((\\\1|[\s\S])*?)\1)|(calc|url)\([\s\S]*?\)(?=;)/g
3434

0 commit comments

Comments
Ā (0)