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 8ad7010 commit 77c1fd3Copy full SHA for 77c1fd3
packages/svelte/src/compiler/phases/1-parse/read/style.js
@@ -6,7 +6,7 @@ const REGEX_ATTRIBUTE_FLAGS = /^[a-zA-Z]+/; // only `i` and `s` are valid today,
6
const REGEX_COMBINATOR_WHITESPACE = /^\s*(\+|~|>|\|\|)\s*/;
7
const REGEX_COMBINATOR = /^(\+|~|>|\|\|)/;
8
const REGEX_PERCENTAGE = /^\d+(\.\d+)?%/;
9
-const REGEX_NTH_OF = /^\s*(even|odd|(-?[0-9]?n?(\s*\+\s*[0-9]+)?))(\s*(?=[,)])|\s+of\s+)/;
+const REGEX_NTH_OF = /^\s*(even|odd|(-?[0-9]*n?(\s*\+\s*[0-9]+)?))(\s*(?=[,)])|\s+of\s+)/;
10
const REGEX_WHITESPACE_OR_COLON = /[\s:]/;
11
const REGEX_BRACE_OR_SEMICOLON = /[{;]/;
12
const REGEX_LEADING_HYPHEN_OR_DIGIT = /-?\d/;
0 commit comments