We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c812e2a commit d8b9acaCopy full SHA for d8b9aca
utils/validation.ts
@@ -0,0 +1,8 @@
1
+export function isUrl(ur: string) {
2
+ try {
3
+ const _url = new URL(ur)
4
+ return true
5
+ } catch (_) {
6
+ return false
7
+ }
8
+}
0 commit comments