From 7ba6206ec8bd904c53a662a2fce1e5f48961c431 Mon Sep 17 00:00:00 2001 From: Daniel Schadt Date: Wed, 23 Nov 2022 23:46:43 +0100 Subject: update dependencies --- src/api/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/api/mod.rs') 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 }, "", -- cgit v1.2.3