improve param_parse_with a bit

This commit is contained in:
Robin Appelman 2023-03-04 22:29:47 +01:00
commit 3f51270509
2 changed files with 8 additions and 9 deletions

View file

@ -63,7 +63,7 @@ pub struct KillEvent<'a> {
pub fn kill_event_parser(input: &str) -> IResult<&str, KillEvent> {
let (input, target) = against_subject_parser(input)?;
let (input, weapon) = param_parse("with")(input)?;
let (input, weapon) = param_parse("with")(&input[1..])?;
let mut event = KillEvent {
target,
weapon,