chore: update
This commit is contained in:
9
src/utils/helper.ts
Normal file
9
src/utils/helper.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
export const isValidUrl = (url: string) => {
|
||||
try {
|
||||
new URL(url);
|
||||
return true;
|
||||
} catch (e) {
|
||||
console.log(e);
|
||||
return false;
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user