Files
stoatchat/src/util/regex.rs
2021-09-15 22:22:55 +03:00

5 lines
140 B
Rust

use once_cell::sync::Lazy;
use regex::Regex;
pub static RE_USERNAME: Lazy<Regex> = Lazy::new(|| Regex::new(r"^[a-zA-Z0-9_.]+$").unwrap());