Returns the index just past the string literal that begins at `i`.
(css, i)
| 336 | |
| 337 | /** Returns the index just past the string literal that begins at `i`. */ |
| 338 | function skipCssString(css, i) { |
| 339 | const quote = css[i]; |
| 340 | let j = i + 1; |
| 341 | while (j < css.length) { |
| 342 | const ch = css[j]; |
| 343 | if (ch === "\\") { |
| 344 | j += 2; |
| 345 | continue; |
| 346 | } |
| 347 | if (ch === quote) return j + 1; |
| 348 | j++; |
| 349 | } |
| 350 | return j; |
| 351 | } |
| 352 | |
| 353 | /** Returns the index just past the `url(...)` token that begins at `i`. */ |
| 354 | function skipCssUrl(css, i) { |
no outgoing calls
no test coverage detected