chore: update

This commit is contained in:
huzibaca
2024-11-08 21:46:15 +08:00
Unverified
parent 2887a2b6d3
commit c22e4e5e2c
20 changed files with 887 additions and 4 deletions

9
src/utils/helper.ts Normal file
View File

@@ -0,0 +1,9 @@
export const isValidUrl = (url: string) => {
try {
new URL(url);
return true;
} catch (e) {
console.log(e);
return false;
}
};