☰
Debian Codegraph
@
4.13.1-1
/
/
install
/
freeipa-webui
/
node_modules
/
@reduxjs
/
toolkit
/
src
/
query
/
utils
/
isAbsoluteUrl.ts
☽
☼
install/freeipa-webui/node_modules/@reduxjs/toolkit/src/query/utils/isAbsoluteUrl.ts
code
plain
raw
GPL-3+
1999-2011 Red Hat, Inc.
debian/copyright
1
/**
2
* If either :// or // is present consider it to be an absolute url
3
*
4
* @param url string
5
*/
6
7
export function isAbsoluteUrl(url: string) {
8
return new RegExp(`(^|:)//`).test(url)
9
}