From 96e36c7c395025a7db5f37675eddbf6d143f3fff Mon Sep 17 00:00:00 2001 From: gingerBill Date: Thu, 3 Mar 2022 13:54:23 +0000 Subject: Minor fix to strconv.unquote_string --- core/strconv/strconv.odin | 1 + 1 file changed, 1 insertion(+) diff --git a/core/strconv/strconv.odin b/core/strconv/strconv.odin index 6ea8b39e6..65161a820 100644 --- a/core/strconv/strconv.odin +++ b/core/strconv/strconv.odin @@ -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 -- cgit v1.2.3