transbeam/src/util.rs

4 lines
116 B
Rust
Raw Normal View History

2022-04-28 05:13:14 -04:00
pub(crate) fn is_ascii_alphanumeric(s: &str) -> bool {
s.as_bytes().iter().all(|c| c.is_ascii_alphanumeric())
}