diff --git a/src/snapshot.ts b/src/snapshot.ts index 27b882be..f412cbfd 100644 --- a/src/snapshot.ts +++ b/src/snapshot.ts @@ -69,7 +69,7 @@ function extractOrigin(url: string): string { return origin; } -const URL_IN_CSS_REF = /url\((?:(')([^']*)'|(")([^"]*)"|([^)]*))\)/gm; +const URL_IN_CSS_REF = /url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm; const RELATIVE_PATH = /^(?!www\.|(?:http|ftp)s?:\/\/|[A-Za-z]:\\|\/\/|#).*/; const DATA_URI = /^(data:)([^,]*),(.*)/i; export function absoluteToStylesheet( diff --git a/test/__snapshots__/integration.ts.snap b/test/__snapshots__/integration.ts.snap index afa7b2a0..cd30b31c 100644 --- a/test/__snapshots__/integration.ts.snap +++ b/test/__snapshots__/integration.ts.snap @@ -297,7 +297,7 @@ exports[`[html file]: with-style-sheet.html 1`] = `