mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 07:38:48 +00:00
Fix bug with index increment in unquote_string
This commit is contained in:
@@ -343,7 +343,7 @@ unquote_string :: proc(token: Token, spec: Specification, allocator := context.a
|
|||||||
i += 1
|
i += 1
|
||||||
continue
|
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 {
|
if r == utf8.RUNE_ERROR && w == 1 {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user