Spaces:
Sleeping
Sleeping
Download node_modules/@reduxjs/toolkit/src/query/utils/isAbsoluteUrl.ts from Scribbler310/gs-port: direct link, hf CLI and curl.
- Browser
- Download file 189 Bytes
-
https://huggingface.co/spaces/Scribbler310/gs-port/resolve/main/node_modules/%40reduxjs/toolkit/src/query/utils/isAbsoluteUrl.ts
- Command line
-
hf download hf://spaces/Scribbler310/gs-port/node_modules/@reduxjs/toolkit/src/query/utils/isAbsoluteUrl.ts
-
curl -L -o isAbsoluteUrl.ts https://huggingface.co/spaces/Scribbler310/gs-port/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) | |
| } | |