WIP account registration
This commit is contained in:
parent
f4d9c1a3c4
commit
2ba4aa8c8e
14 changed files with 419 additions and 19 deletions
6
src/helpers/clean.rs
Normal file
6
src/helpers/clean.rs
Normal file
|
@ -0,0 +1,6 @@
|
|||
use regex::Regex;
|
||||
|
||||
pub fn clean(string: &str) -> String {
|
||||
let regex = Regex::new(r"[^a-zA-z0-9_-]").unwrap();
|
||||
return regex.replace_all(string, "").to_string();
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue