diff options
| author | Abdelrahman Farid <abdelrahman.farid@gmail.com> | 2023-09-19 22:19:05 +0300 |
|---|---|---|
| committer | Abdelrahman Farid <abdelrahman.farid@gmail.com> | 2023-09-19 22:19:05 +0300 |
| commit | f1872f495ad1e6abc695b78ee2cc3b1c0444cb8b (patch) | |
| tree | eb701e242e7f0dc363146d27579564b5738ee3d7 /core/encoding | |
| parent | 9ed36445b924c028acf72854e6ca735abf5838cc (diff) | |
Fix bug with index increment in `unquote_string`
Diffstat (limited to 'core/encoding')
| -rw-r--r-- | core/encoding/json/parser.odin | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/encoding/json/parser.odin b/core/encoding/json/parser.odin index d007e16d7..bc381efee 100644 --- a/core/encoding/json/parser.odin +++ b/core/encoding/json/parser.odin @@ -343,7 +343,7 @@ unquote_string :: proc(token: Token, spec: Specification, allocator := context.a i += 1 continue } - r, w := utf8.decode_rune_in_string(s) + r, w := utf8.decode_rune_in_string(s[i:]) if r == utf8.RUNE_ERROR && w == 1 { break } |