Skip to content

Commit 5ffb69a

Browse files
stop logging error when validating URLs
1 parent 37583c0 commit 5ffb69a

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@primoui/utils",
33
"description": "A lightweight set of utilities",
4-
"version": "1.2.1",
4+
"version": "1.2.2",
55
"license": "MIT",
66
"type": "module",
77
"author": {

src/http/http.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,7 @@ export const isValidUrl = (url?: string) => {
7979
try {
8080
new URL(url)
8181
return true
82-
} catch (error) {
83-
console.error(error)
82+
} catch {
8483
return false
8584
}
8685
}

0 commit comments

Comments
 (0)