diesel -> sqlx, patch cve (again lul)
This commit is contained in:
parent
a5cac129dd
commit
c3bb6d0d67
39 changed files with 1581 additions and 1207 deletions
|
@ -8,4 +8,9 @@ pub fn clean_no_space(string: &str) -> String {
|
|||
pub fn clean_basic(string: &str) -> String {
|
||||
let regex = Regex::new(r"[^A-Za-z0-9\-_ ]").unwrap();
|
||||
return regex.replace_all(string, "").to_string();
|
||||
}
|
||||
|
||||
pub fn clean_char(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