From 36257b4ba0b78a73a6e957b5a6a3ade4afc48fa8 Mon Sep 17 00:00:00 2001 From: Mark Schmale Date: Thu, 13 Sep 2018 10:51:29 +0200 Subject: [PATCH] fix(format_parser): we need to skip the '$' in all cases. --- src/format.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/format.rs b/src/format.rs index d777f6b..57848ea 100644 --- a/src/format.rs +++ b/src/format.rs @@ -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 {