mirror of
https://github.com/stoatchat/stoatchat.git
synced 2026-07-14 13:36:59 +00:00
Merge pull request #88 from meguminloli/re_username
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
pub mod result;
|
||||
pub mod variables;
|
||||
pub mod ratelimit;
|
||||
pub mod regex;
|
||||
4
src/util/regex.rs
Normal file
4
src/util/regex.rs
Normal file
@@ -0,0 +1,4 @@
|
||||
use once_cell::sync::Lazy;
|
||||
use regex::Regex;
|
||||
|
||||
pub static RE_USERNAME: Lazy<Regex> = Lazy::new(|| Regex::new(r"^[a-zA-Z0-9_.]+$").unwrap());
|
||||
Reference in New Issue
Block a user