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