(cssURL: string)
| 146 | // beforehand, otherwise `.` will fail matching the content within the url, as it |
| 147 | // doesn't match any linebreaks. |
| 148 | export function getCSSURLValue(cssURL: string): string { |
| 149 | return cssURL.trim().replace(/[\n\r\\]+/g, '').replace(/^url\((.*)\)$/, '$1').trim().replace(/^"(.*)"$/, '$1').replace(/^'(.*)'$/, '$1').replace(/(?:\\(.))/g, '$1'); |
| 150 | } |
| 151 | |
| 152 | export function getCSSBaseBath(url: string): string { |
| 153 | const cssURL = parseURL(url); |
no outgoing calls
no test coverage detected