Spaces:
Paused
Paused
Download node_modules/@reduxjs/toolkit/src/query/utils/isAbsoluteUrl.ts from Leon4gr45/UserSyncFrontend: direct link, hf CLI and curl.
- Browser
- Download file 189 Bytes
-
https://huggingface.co/spaces/Leon4gr45/UserSyncFrontend/resolve/main/node_modules/%40reduxjs/toolkit/src/query/utils/isAbsoluteUrl.ts
- Command line
-
hf download hf://spaces/Leon4gr45/UserSyncFrontend/node_modules/@reduxjs/toolkit/src/query/utils/isAbsoluteUrl.ts
-
curl -L -o isAbsoluteUrl.ts https://huggingface.co/spaces/Leon4gr45/UserSyncFrontend/resolve/main/node_modules/%40reduxjs/toolkit/src/query/utils/isAbsoluteUrl.ts
189 Bytes
| /** | |
| * If either :// or // is present consider it to be an absolute url | |
| * | |
| * @param url string | |
| */ | |
| export function isAbsoluteUrl(url: string) { | |
| return new RegExp(`(^|:)//`).test(url) | |
| } | |