This commit is contained in:
Simon Gardling 2022-06-01 02:29:48 -04:00
parent 4cdd764956
commit 252312b1f7
3 changed files with 4 additions and 4 deletions

View File

@ -66,7 +66,7 @@ fn main() {
let mut main_chars: Vec<char> =
b"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzsu0123456789?.,!(){}[]-_=+-/<>'\\ :^*`@#$%&|~;"
.into_iter()
.iter()
.map(|c| *c as char)
.collect();

View File

@ -118,7 +118,7 @@ impl FunctionManager {
// Only keep valid chars
new_string = new_string
.chars()
.filter(|c| crate::misc::is_valid_char(c))
.filter(crate::misc::is_valid_char)
.collect::<String>();
// If not fully open, return here as buttons cannot yet be displayed, therefore the user is inable to mark it for deletion

View File

@ -3,7 +3,7 @@ pub fn to_unicode_hash(c: char) -> String {
c.escape_unicode()
.to_string()
.replace(r#"\\u{"#, "")
.replace("{", "")
.replace("}", "")
.replace('{', "")
.replace('}', "")
.to_uppercase()
}