mirror of
https://github.com/themasch/nginx-log-parser.git
synced 2025-02-13 12:10:28 +00:00
fix(format_parser): we need to skip the '$' in all cases.
This commit is contained in:
parent
ddb69a1260
commit
36257b4ba0
@ -155,7 +155,7 @@ fn read_byte(chr: u8, index: usize, state: &FormatParserState) -> FormatParserSt
|
||||
},
|
||||
Variable(start, _end) => match chr {
|
||||
x if is_var_char(x) => Variable(*start, index + 1),
|
||||
b'$' => Variable(index, index + 1),
|
||||
b'$' => Variable(index + 1, index + 1),
|
||||
_ => Fixed(index, index + 1),
|
||||
},
|
||||
Fixed(start, _end) => match chr {
|
||||
|
Loading…
x
Reference in New Issue
Block a user