MCPcopy Create free account
hub / github.com/chartbrew/chartbrew / normalizeHostname

Function normalizeHostname

server/modules/safeRequest.js:40–45  ·  view source on GitHub ↗
(hostname)

Source from the content-addressed store, hash-verified

38}
39
40function normalizeHostname(hostname) {
41 return String(hostname || "")
42 .trim()
43 .replace(/\.$/, "")
44 .toLowerCase();
45}
46
47function createLookupError(hostname) {
48 const error = new Error(`Validated DNS resolution not available for ${hostname}.`);

Callers 1

createPinnedLookupFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected