Skip to content

Commit 27d7ffb

Browse files
authored
fix(lint): Move ESLint comment (#15216)
1 parent d8e64ef commit 27d7ffb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/astro/src/core/compile/style.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ function rewriteCssUrls(css: string, base: string): string {
4343
// Matches url(...) while handling quotes, unquoted URLs, and edge cases
4444
// Excludes @import statements via negative lookbehind
4545
// Matches Vite's cssUrlRE pattern exactly - capturing groups preserved for compatibility
46-
// eslint-disable-next-line regexp/no-unused-capturing-group
4746
const cssUrlRE =
47+
// eslint-disable-next-line regexp/no-unused-capturing-group
4848
/(?<!@import\s+)(?<=^|[^\w\-\u0080-\uffff])url\((\s*('[^']+'|"[^"]+")\s*|(?:\\.|[^'")\\])+)\)/g;
4949

5050
return css.replace(cssUrlRE, (match, rawUrl: string) => {

0 commit comments

Comments
 (0)