From a3a9cfa4580092fed100fda26da8fc26cee27fa4 Mon Sep 17 00:00:00 2001 From: aisouler Date: Fri, 23 Feb 2024 21:44:36 +0800 Subject: [PATCH] Update file.ts --- src/file.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/file.ts b/src/file.ts index d37b843f..4bdc1a3f 100644 --- a/src/file.ts +++ b/src/file.ts @@ -130,7 +130,7 @@ export async function* walk(dirPath: string) { export const validSnapshotUrl = (s: string) => { const u = new URL(s); - return u.pathname.startsWith('/import/') || u.pathname.startsWith('/i/'); + return u.pathname.startsWith('/i/'); }; export const checkConfig = (newConfig: RawSubscription) => { @@ -284,7 +284,7 @@ export const checkConfig = (newConfig: RawSubscription) => { groupKey: g.key, }); throw new Error( - `invalid snapshotUrls: ${u}\nit should like https://i.gkd.li/i/12506571 or https://i.gkd.li/i/14362119`, + `invalid snapshotUrls: ${u}\nit should like https://i.gkd.li/i/12506571`, ); } }); @@ -299,7 +299,7 @@ export const checkConfig = (newConfig: RawSubscription) => { ruleKey: r.key, }); throw new Error( - `invalid snapshotUrls: ${u}\nit should like https://i.gkd.li/i/12506571 or https://i.gkd.li/i/14362119`, + `invalid snapshotUrls: ${u}\nit should like https://i.gkd.li/i/12506571`, ); } });