Skip to content

Commit 6b4eae6

Browse files
author
BugHunter Agent
committed
fix(lint): remove unnecessary escape in core-web-vitals regex (no-useless-escape)
Caused CI failure (Lint job) on 5ce31ba, blocking Vercel deploy. 0 errors, 2 warnings now.
1 parent 5ce31ba commit 6b4eae6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/lib/performance/core-web-vitals.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export class LazyImageLoader {
7171
// Only allow http(s) absolute URLs and root-relative paths.
7272
// Explicitly reject protocol-relative (//) and javascript:/data:
7373
// to prevent scheme injection via data-src attributes.
74-
if (/^https?:\/\//i.test(dataSrc) || /^\/[^\/]/.test(dataSrc)) {
74+
if (/^https?:\/\//i.test(dataSrc) || /^\/[^/]/.test(dataSrc)) {
7575
img.src = dataSrc;
7676
img.removeAttribute('data-src');
7777
}

0 commit comments

Comments
 (0)