Parcourir la source

Minor fix to strconv.unquote_string

gingerBill il y a 3 ans
Parent
commit
96e36c7c39
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  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 == `""` {
 	if s == `""` {
 		return "", false, true
 		return "", false, true
 	}
 	}
+	s = s[1:len(s)-1]
 
 
 	if contains_rune(s, '\n') >= 0 {
 	if contains_rune(s, '\n') >= 0 {
 		return s, false, false
 		return s, false, false