This commit is contained in:
2023-05-09 00:09:06 +02:00
parent 678b65146b
commit de757e7e50
3 changed files with 4 additions and 4 deletions

View File

@@ -21,7 +21,7 @@ pub fn remove_wrong_chars(s: &str) -> String {
}
pub fn parse_lang(s: &str) -> String {
s.replace('-', "").replace('~', "").to_lowercase()
s.replace(['-', '~'], "").to_lowercase()
}
pub fn fix_annotation_text(text: &str) -> String {