aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2022-03-03 13:54:23 +0000
committergingerBill <bill@gingerbill.org>2022-03-03 13:54:23 +0000
commit96e36c7c395025a7db5f37675eddbf6d143f3fff (patch)
tree7a79e59fb8bd30dfabe400106caa12a4dd08e56a
parent7e5342f41fab561337ebd648407b753bd1813abf (diff)
Minor fix to strconv.unquote_string
-rw-r--r--core/strconv/strconv.odin1
1 files changed, 1 insertions, 0 deletions
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