Skip to content

Commit

Permalink
fix: convert input to lowercase during arg parse
Browse files Browse the repository at this point in the history
  • Loading branch information
damaredayo committed Sep 3, 2024
1 parent 103bf19 commit cbc7ed5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bathbot/src/commands/osu/simulate/args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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().as_str())
}

fn parse_any(input: &str) -> Result<SimulateArg, ParseError<'_>> {
Expand Down

0 comments on commit cbc7ed5

Please sign in to comment.