There was an error while loading. Please reload this page.
1 parent d8e64ef commit 27d7ffbCopy full SHA for 27d7ffb
1 file changed
packages/astro/src/core/compile/style.ts
@@ -43,8 +43,8 @@ function rewriteCssUrls(css: string, base: string): string {
43
// Matches url(...) while handling quotes, unquoted URLs, and edge cases
44
// Excludes @import statements via negative lookbehind
45
// Matches Vite's cssUrlRE pattern exactly - capturing groups preserved for compatibility
46
- // eslint-disable-next-line regexp/no-unused-capturing-group
47
const cssUrlRE =
+ // eslint-disable-next-line regexp/no-unused-capturing-group
48
/(?<!@import\s+)(?<=^|[^\w\-\u0080-\uffff])url\((\s*('[^']+'|"[^"]+")\s*|(?:\\.|[^'")\\])+)\)/g;
49
50
return css.replace(cssUrlRE, (match, rawUrl: string) => {
0 commit comments