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

Function normalize_profile_id

crates/openshell-providers/src/profiles.rs:1061–1068  ·  view source on GitHub ↗
(input: &str)

Source from the content-addressed store, hash-verified

1059
1060#[must_use]
1061pub fn normalize_profile_id(input: &str) -> Option<String> {
1062 let id = input.trim().to_ascii_lowercase();
1063 if is_valid_profile_id(&id) {
1064 Some(id)
1065 } else {
1066 None
1067 }
1068}
1069
1070fn is_valid_profile_id(id: &str) -> bool {
1071 !id.is_empty()

Calls 1

is_valid_profile_idFunction · 0.85

Tested by

no test coverage detected