mirror of
https://codeberg.org/icewind/tf-log-parser.git
synced 2026-11-30 04:40:47 +01:00
more edge case handling
This commit is contained in:
parent
a30a3d3683
commit
f1213a5664
5 changed files with 15 additions and 9 deletions
|
|
@ -138,7 +138,8 @@ impl<'a> Iterator for ParamIter<'a> {
|
|||
fn param_pair_parse(input: &str) -> IResult<'_, (&str, &str)> {
|
||||
let (input, open_tag) = skip_matches(input, b'(');
|
||||
|
||||
let (key, input) = split_once(input, b' ', 2)?;
|
||||
let (key, input) = split_once(input, b' ', 1)?;
|
||||
let input = skip(input, 1)?;
|
||||
let (value, input) = split_once(input, b'"', 1)?;
|
||||
|
||||
let input = if open_tag { skip(input, 1)? } else { input };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue