mirror of
https://github.com/stoatchat/stoatchat.git
synced 2026-07-14 21:47:02 +00:00
moved all RE_USERNAME occurrences to regex.rs
switch to normal Cargo.toml switch to normal Cargo.toml switch to normal Cargo.toml solved bug
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