Browse Source

Minor fix to strconv.unquote_string

gingerBill 3 years ago
parent
commit
96e36c7c39
1 changed files with 1 additions and 0 deletions
  1. 1 0
      core/strconv/strconv.odin

+ 1 - 0
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