From d1a9d645c3325ead6f21664e5390d1c555fba493 Mon Sep 17 00:00:00 2001 From: Tyler Thompson Date: Tue, 3 Sep 2024 23:25:12 +0100 Subject: [PATCH] fix: convert input to lowercase during arg parse --- bathbot/src/commands/osu/simulate/args.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bathbot/src/commands/osu/simulate/args.rs b/bathbot/src/commands/osu/simulate/args.rs index 83d8e720..1c272588 100644 --- a/bathbot/src/commands/osu/simulate/args.rs +++ b/bathbot/src/commands/osu/simulate/args.rs @@ -66,7 +66,7 @@ impl SimulateArg { } fn parse_key(input: &str) -> IResult<&str, Option<&str>> { - opt(terminated(ch::alphanumeric1, ch::char('=')))(input) + opt(terminated(ch::alphanumeric1, ch::char('=')))(&input.to_lowercase()) } fn parse_any(input: &str) -> Result> {