Skip to content

Commit dbf8078

Browse files
Rogerio Luiz Aques de AmorimRogerio Luiz Aques de Amorim
authored andcommitted
fix support-font-face test not passing
1 parent 0535043 commit dbf8078

File tree

1 file changed

+1
-1
lines changed
  • packages/svelte/src/compiler/phases/1-parse/read

1 file changed

+1
-1
lines changed

packages/svelte/src/compiler/phases/1-parse/read/style.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const REGEX_PERCENTAGE = /^\d+(\.\d+)?%/;
99
const REGEX_NTH_OF =
1010
/^(even|odd|\+?(\d+|\d*n(\s*[+-]\s*\d+)?)|-\d*n(\s*\+\s*\d+))((?=\s*[,)])|\s+of\s+)/;
1111
const REGEX_WHITESPACE_OR_COLON = /[\s:]/;
12-
const REGEX_BRACE_OR_SEMICOLON = /[{;](?=[^"']*$)/;
12+
const REGEX_BRACE_OR_SEMICOLON = /[{;](?=(?:[^']*'[^']*')*[^']*$)/;
1313
const REGEX_LEADING_HYPHEN_OR_DIGIT = /-?\d/;
1414
const REGEX_VALID_IDENTIFIER_CHAR = /[a-zA-Z0-9_-]/;
1515
const REGEX_COMMENT_CLOSE = /\*\//;

0 commit comments

Comments
 (0)