(importDeclaration: string)
| 577 | } |
| 578 | |
| 579 | function getCSSImportURL(importDeclaration: string) { |
| 580 | // substring(7) is used to remove `@import` from the string. |
| 581 | // And then use .trim() to remove the possible whitespaces. |
| 582 | return getCSSURLValue(importDeclaration.substring(7).trim().replace(/;$/, '').replace(/screen$/, '')); |
| 583 | } |
| 584 | |
| 585 | async function loadText(url: string) { |
| 586 | if (url.startsWith('data:')) { |
no test coverage detected