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