From ef1cc18bc6e0b94ae66cb93ced5b8122b3e1dba3 Mon Sep 17 00:00:00 2001 From: Tyler Thompson Date: Wed, 4 Sep 2024 00:03:15 +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..2f4305a2 100644 --- a/bathbot/src/commands/osu/simulate/args.rs +++ b/bathbot/src/commands/osu/simulate/args.rs @@ -36,7 +36,7 @@ impl SimulateArg { pub fn parse(input: &str) -> Result> { let (rest, key_opt) = parse_key(input).map_err(|_| ParseError::Nom(input))?; - match key_opt { + match key_opt.map(str::to_lowercase).as_deref() { None => parse_any(rest), Some("acc" | "a" | "accuracy") => parse_acc(rest).map(SimulateArg::Acc), Some("bpm") => parse_bpm(rest).map(SimulateArg::Bpm),