mirror of
https://codeberg.org/icewind/tf-log-parser.git
synced 2026-11-30 04:40:47 +01:00
fix damage
This commit is contained in:
parent
fbe3eee614
commit
838c3a0dd9
4 changed files with 17 additions and 3 deletions
|
|
@ -140,9 +140,16 @@ fn param_pair_parse(input: &str) -> IResult<'_, (&str, &str)> {
|
|||
|
||||
let (key, input) = split_once(input, b' ', 1)?;
|
||||
let input = skip(input, 1)?;
|
||||
let (value, input) = split_once(input, b'"', 1)?;
|
||||
|
||||
// hack to handle quotes in names
|
||||
let (value, input) = if key == "against" || key == "objectowner" {
|
||||
split_subject_end(input, 1)?
|
||||
} else {
|
||||
split_once(input, b'"', 1)?
|
||||
};
|
||||
|
||||
let input = if open_tag { skip(input, 1)? } else { input };
|
||||
let (input, _) = skip_matches(input, b' ');
|
||||
Ok((input, (key, value)))
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue