mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-01-29 08:45:41 +08:00
12 lines
189 B
TypeScript
12 lines
189 B
TypeScript
import { debugLog } from "@/utils/debug";
|
|
|
|
export const isValidUrl = (url: string) => {
|
|
try {
|
|
new URL(url);
|
|
return true;
|
|
} catch (e) {
|
|
debugLog(e);
|
|
return false;
|
|
}
|
|
};
|