Spaces:
Sleeping
Sleeping
Download node_modules/@reduxjs/toolkit/src/query/utils/isValidUrl.ts from Scribbler310/gs-port: direct link, hf CLI and curl.
- Browser
- Download file 127 Bytes
-
https://huggingface.co/spaces/Scribbler310/gs-port/resolve/main/node_modules/%40reduxjs/toolkit/src/query/utils/isValidUrl.ts
- Command line
-
hf download hf://spaces/Scribbler310/gs-port/node_modules/@reduxjs/toolkit/src/query/utils/isValidUrl.ts
-
curl -L -o isValidUrl.ts https://huggingface.co/spaces/Scribbler310/gs-port/resolve/main/node_modules/%40reduxjs/toolkit/src/query/utils/isValidUrl.ts
127 Bytes
| export function isValidUrl(string: string) { | |
| try { | |
| new URL(string) | |
| } catch (_) { | |
| return false | |
| } | |
| return true | |
| } | |