mirror of
https://codeberg.org/icewind/tf-log-parser.git
synced 2026-11-30 04:40:47 +01:00
improve param_parse_with a bit
This commit is contained in:
parent
9bd6d16043
commit
3f51270509
2 changed files with 8 additions and 9 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue