Minor fix to strconv.unquote_string

This commit is contained in:
gingerBill
2022-03-03 13:54:23 +00:00
parent 7e5342f41f
commit 96e36c7c39

View File

@@ -895,6 +895,7 @@ unquote_string :: proc(lit: string, allocator := context.allocator) -> (res: str
if s == `""` {
return "", false, true
}
s = s[1:len(s)-1]
if contains_rune(s, '\n') >= 0 {
return s, false, false