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

Function is_env_key_char

crates/openshell-core/src/secrets.rs:18–20  ·  view source on GitHub ↗

Characters that are valid in an env var key name (used to extract placeholder boundaries within concatenated strings like path segments).

(b: u8)

Source from the content-addressed store, hash-verified

16/// Characters that are valid in an env var key name (used to extract
17/// placeholder boundaries within concatenated strings like path segments).
18fn is_env_key_char(b: u8) -> bool {
19 b.is_ascii_alphanumeric() || b == b'_'
20}
21
22fn is_alias_token_char(b: u8) -> bool {
23 b.is_ascii_alphanumeric() || matches!(b, b'_' | b'-' | b'.' | b'~')

Callers 4

canonical_token_atFunction · 0.85
alias_token_atFunction · 0.85
alias_env_keyFunction · 0.85
token_boundary_okFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected