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

Function normalizeHostname

server/modules/outboundTargetPolicy.js:114–119  ·  view source on GitHub ↗
(hostname)

Source from the content-addressed store, hash-verified

112}
113
114function normalizeHostname(hostname) {
115 return String(hostname || "")
116 .trim()
117 .replace(/\.$/, "")
118 .toLowerCase();
119}
120
121function normalizeIpAddress(address) {
122 return String(address || "")

Callers 1

validateOutboundUrlFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected