diff options
author | Daniel Schadt <kingdread@gmx.de> | 2022-11-23 23:46:43 +0100 |
---|---|---|
committer | Daniel Schadt <kingdread@gmx.de> | 2022-11-23 23:46:43 +0100 |
commit | 7ba6206ec8bd904c53a662a2fce1e5f48961c431 (patch) | |
tree | b25c31eea6e76356aa1b02f54c6fdb5cd4d1d893 /src/api/mod.rs | |
parent | d6ba356a7573202709c7b0ec2be3a2857b58bd6b (diff) | |
download | kondou-7ba6206ec8bd904c53a662a2fce1e5f48961c431.tar.gz kondou-7ba6206ec8bd904c53a662a2fce1e5f48961c431.tar.bz2 kondou-7ba6206ec8bd904c53a662a2fce1e5f48961c431.zip |
update dependencies
Diffstat (limited to 'src/api/mod.rs')
-rw-r--r-- | src/api/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/mod.rs b/src/api/mod.rs index 7cec4e6..0b823ae 100644 --- a/src/api/mod.rs +++ b/src/api/mod.rs @@ -241,7 +241,7 @@ impl Api { fn sanitize_id(input: &str) -> String { input.replace( |c: char| { - let is_valid = c.is_ascii() && (c.is_digit(10) || c.is_alphabetic()); + let is_valid = c.is_ascii() && (c.is_ascii_digit() || c.is_alphabetic()); !is_valid }, "", |