MCPcopy Create free account
hub / github.com/BrainicHQ/DoHSpeedTest / normalizeHostnameForStorage

Function normalizeHostnameForStorage

script.js:150–154  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

148}
149
150function normalizeHostnameForStorage(value) {
151 if (typeof value !== 'string') return null;
152 const host = validateAndExtractHost(value.trim());
153 return host ? host.toLowerCase() : null;
154}
155
156function loadStoredHostnames() {
157 const stored = readStoredJson(SETTINGS_STORAGE_KEYS.hostnames);

Callers 1

loadStoredHostnamesFunction · 0.85

Calls 1

validateAndExtractHostFunction · 0.85

Tested by

no test coverage detected