MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / normalize_host

Function normalize_host

crates/openshell-prover/src/credentials.rs:169–171  ·  view source on GitHub ↗
(host: &str)

Source from the content-addressed store, hash-verified

167}
168
169fn normalize_host(host: &str) -> String {
170 host.trim().trim_end_matches('.').to_ascii_lowercase()
171}
172
173fn host_patterns_overlap(left: &str, right: &str) -> bool {
174 let left = normalize_host(left);

Callers 2

api_for_hostMethod · 0.70
host_patterns_overlapFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected