Fix bug with index increment in unquote_string

This commit is contained in:
Abdelrahman Farid
2023-09-19 22:19:05 +03:00
parent 9ed36445b9
commit f1872f495a

View File

@@ -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
}