fix: lint

pull/340/MERGE
xingyu4j 2026-04-13 16:46:44 +08:00
parent adecddae67
commit b2cf1646a4
11 changed files with 13 additions and 14 deletions

View File

@ -4,8 +4,7 @@
*/ */
export function isUrl(path: string): boolean { export function isUrl(path: string): boolean {
try { try {
new URL(path); return Boolean(new URL(path));
return true;
} catch { } catch {
return false; return false;
} }