Skip to content

Commit 4ef6831

Browse files
committed
Unnecessary to escape the foreslashes within a backtick-string
1 parent 79a2dc8 commit 4ef6831

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { styleText } from 'bun:util';
33
const project = 'osm-auth';
44
const hostname = '127.0.0.1';
55
const port = 8080;
6-
const matchCDN = new RegExp(`(['"\`])(https?:\/\/cdn.jsdelivr.*${project}.*\/)(dist.*["'\`])`, 'gi');
6+
const matchCDN = new RegExp(`(['"\`])(https?://cdn.jsdelivr.*${project}.*/)(dist.*["'\`])`, 'gi');
77

88

99
// Replace urls for CDN `dist/*` files with local `dist/*` files.

0 commit comments

Comments
 (0)