fix(format_parser): we need to skip the '$' in all cases.

This commit is contained in:
Mark Schmale 2018-09-13 10:51:29 +02:00
parent ddb69a1260
commit 36257b4ba0

View File

@ -155,7 +155,7 @@ fn read_byte(chr: u8, index: usize, state: &FormatParserState) -> FormatParserSt
}, },
Variable(start, _end) => match chr { Variable(start, _end) => match chr {
x if is_var_char(x) => Variable(*start, index + 1), 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(index, index + 1),
}, },
Fixed(start, _end) => match chr { Fixed(start, _end) => match chr {