WIP account registration

This commit is contained in:
Reid 2023-08-26 19:49:43 -07:00
parent f4d9c1a3c4
commit 2ba4aa8c8e
Signed by: reidlab
GPG key ID: 6C9EAA3364F962C8
14 changed files with 419 additions and 19 deletions

6
src/helpers/clean.rs Normal file
View 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();
}