We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f39751a commit 42a068aCopy full SHA for 42a068a
2 files changed
release.mjs
@@ -41,7 +41,7 @@ const exec = (...commands) => {
41
writeFileSync(
42
path.join(__dirname, './ComicRead-jsDelivr.user.js'),
43
code.replaceAll(
44
- /registry\.npmmirror\.com\/([^/]+)\/([^/]+)\/files\/(.+)/g,
+ /registry\.npmmirror\.com\/(.+)\/(\d+\.\d+\.\d)\/files\/(.+)/g,
45
'cdn.jsdelivr.net/npm/$1@$2/$3',
46
),
47
);
rollup.config.ts
@@ -281,7 +281,7 @@ if (!isDevMode)
281
// 不知道为啥俄罗斯访问不了 npmmirror,只能改用 jsdelivr
282
// https://github.com/hymbz/ComicReadScript/issues/170
283
code = code.replaceAll(
284
285
286
287
0 commit comments