diff --git a/src/snapshot.ts b/src/snapshot.ts index e23d2a7..3d04acc 100644 --- a/src/snapshot.ts +++ b/src/snapshot.ts @@ -66,7 +66,7 @@ function extractOrigin(url: string): string { } const URL_IN_CSS_REF = /url\((?:(')([^']*)'|(")([^"]*)"|([^)]*))\)/gm; -const RELATIVE_PATH = /^(?!www\.|(?:http|ftp)s?:\/\/|[A-Za-z]:\\|\/\/).*/; +const RELATIVE_PATH = /^(?!www\.|(?:http|ftp)s?:\/\/|[A-Za-z]:\\|\/\/|#).*/; const DATA_URI = /^(data:)([^,]*),(.*)/i; export function absoluteToStylesheet( cssText: string | null,