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 0535043 commit dbf8078Copy full SHA for dbf8078
packages/svelte/src/compiler/phases/1-parse/read/style.js
@@ -9,7 +9,7 @@ const REGEX_PERCENTAGE = /^\d+(\.\d+)?%/;
9
const REGEX_NTH_OF =
10
/^(even|odd|\+?(\d+|\d*n(\s*[+-]\s*\d+)?)|-\d*n(\s*\+\s*\d+))((?=\s*[,)])|\s+of\s+)/;
11
const REGEX_WHITESPACE_OR_COLON = /[\s:]/;
12
-const REGEX_BRACE_OR_SEMICOLON = /[{;](?=[^"']*$)/;
+const REGEX_BRACE_OR_SEMICOLON = /[{;](?=(?:[^']*'[^']*')*[^']*$)/;
13
const REGEX_LEADING_HYPHEN_OR_DIGIT = /-?\d/;
14
const REGEX_VALID_IDENTIFIER_CHAR = /[a-zA-Z0-9_-]/;
15
const REGEX_COMMENT_CLOSE = /\*\//;
0 commit comments