Download node_modules/@aws-sdk/protocol-http/dist-es/isValidHostname.js from sweet2004/bot: direct link, hf CLI and curl.
- Browser
- Download file 144 Bytes
-
https://huggingface.co/spaces/sweet2004/bot/resolve/main/node_modules/%40aws-sdk/protocol-http/dist-es/isValidHostname.js
- Command line
-
hf download hf://spaces/sweet2004/bot/node_modules/@aws-sdk/protocol-http/dist-es/isValidHostname.js
-
curl -L -o isValidHostname.js https://huggingface.co/spaces/sweet2004/bot/resolve/main/node_modules/%40aws-sdk/protocol-http/dist-es/isValidHostname.js
144 Bytes
| export function isValidHostname(hostname) { | |
| const hostPattern = /^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/; | |
| return hostPattern.test(hostname); | |
| } | |