fix(builder): css hash incorrectly transforming data urls (#2921)

Fixes https://github.com/denoland/fresh/issues/2599
This commit is contained in:
Marvin Hagemeister
2025-05-12 09:40:35 +02:00
committed by GitHub
parent 2b0f76be62
commit f9bfecab8e
2 changed files with 30 additions and 1 deletions
+1 -1
View File
@@ -220,7 +220,7 @@ export class FreshFileTransformer {
}
}
const CSS_URL_REGEX = /url\((["'][^'"]+["']|[^)]+)\)/g;
const CSS_URL_REGEX = /url\(("[^"]+"|'[^']+'|[^)]+)\)/g;
export function cssAssetHash(transformer: FreshFileTransformer) {
transformer.onTransform({