Download ai-intelligence-layer/node_modules/axios/lib/helpers/parseProtocol.js from Nonchalant21/aurora-fight-detection: direct link, hf CLI and curl.
- Browser
- Download file 153 Bytes
-
https://huggingface.co/spaces/Nonchalant21/aurora-fight-detection/resolve/main/ai-intelligence-layer/node_modules/axios/lib/helpers/parseProtocol.js
- Command line
-
hf download hf://spaces/Nonchalant21/aurora-fight-detection/ai-intelligence-layer/node_modules/axios/lib/helpers/parseProtocol.js
-
curl -L -o parseProtocol.js https://huggingface.co/spaces/Nonchalant21/aurora-fight-detection/resolve/main/ai-intelligence-layer/node_modules/axios/lib/helpers/parseProtocol.js
153 Bytes
| ; | |
| export default function parseProtocol(url) { | |
| const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url); | |
| return (match && match[1]) || ''; | |
| } | |