MCPcopy Create free account
hub / github.com/aeroxy/chrome-devtools-cli / is_friendly

Function is_friendly

src/friendly.rs:39–41  ·  view source on GitHub ↗

Check if a string looks like a friendly name (contains a hyphen, no hex chars only).

(s: &str)

Source from the content-addressed store, hash-verified

37
38/// Check if a string looks like a friendly name (contains a hyphen, no hex chars only).
39pub fn is_friendly(s: &str) -> bool {
40 s.contains('-') && s.chars().all(|c| c.is_ascii_lowercase() || c == '-')
41}

Callers 1

resolve_pageMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected