Commit fa980f4
Fix SCSSParsingError on unicode characters in SCSS selectors (#14065)
scss-parser@1.0.6 tokenizer uses ASCII-only regex for identifiers,
rejecting valid non-ASCII CSS characters (e.g., #présentation).
Encode non-ASCII characters as ASCII codepoint placeholders before
parsing since the parser is only used for variable analysis, not
CSS generation.
Fixes #14065
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 7ee48e6 commit fa980f4
3 files changed
Lines changed: 30 additions & 0 deletions
File tree
- src/core/sass/analyzer
- tests/docs/smoke-all/2026/02/20
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
44 | 52 | | |
45 | 53 | | |
46 | 54 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
0 commit comments