Skip to content

Commit c381016

Browse files
fix(css): tell a quoted url from an unquoted one past leading whitespace
The lookahead backtracked into the whitespace, so `url( "a)b")` read as unquoted. Claude-Session: https://claude.ai/code/session_017TkBWTk3wcyUcJYDp5ZhaP
1 parent 0fc4796 commit c381016

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎lib/css/syntax-parser.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16934,7 +16934,7 @@ const NAMED_LAYER_OPENER_HEAD = "@layer ".length;
1693416934
const LAYER_STATEMENT_RE = /^@layer ([^\s,;{}]+);$/;
1693516935

1693616936
// Where an unquoted `url(` starts: its body is the token's, not CSS to read.
16937-
const _UNQUOTED_URL_START_RE = /url\([ \t\n\f\r]*(?!["'])/iy;
16937+
const _UNQUOTED_URL_START_RE = /url\((?![ \t\n\f\r]*["'])/iy;
1693816938

1693916939
/**
1694016940
* Drop the blocks a node standing between them could reorder. Only a write into

0 commit comments

Comments
 (0)