☰
Debian Codegraph
@
4.13.1-1
/
/
install
/
freeipa-webui
/
node_modules
/
@reduxjs
/
toolkit
/
src
/
query
/
utils
/
isValidUrl.ts
☽
☼
install/freeipa-webui/node_modules/@reduxjs/toolkit/src/query/utils/isValidUrl.ts
code
plain
raw
GPL-3+
1999-2011 Red Hat, Inc.
debian/copyright
1
export function isValidUrl(string: string) {
2
try {
3
new URL(string)
4
} catch (_) {
5
return false
6
}
7
8
return true
9
}