diff options
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 }, "", |