MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / normalized_device_name

Function normalized_device_name

packages/server/src/devtools.rs:1160–1166  ·  view source on GitHub ↗
(value: &str)

Source from the content-addressed store, hash-verified

1158}
1159
1160fn normalized_device_name(value: &str) -> String {
1161 value
1162 .trim()
1163 .strip_prefix("SimDeck ")
1164 .unwrap_or_else(|| value.trim())
1165 .to_ascii_lowercase()
1166}
1167
1168fn path_safe_id(value: &str) -> String {
1169 let safe = value

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected