Make strconv more robust

This commit is contained in:
gingerBill
2021-12-09 15:35:00 +00:00
parent 1e17d5d86f
commit 1d7c9cf872
+3 -1
View File
@@ -882,7 +882,9 @@ unquote_string :: proc(lit: string, allocator := context.allocator) -> (res: str
return -1
}
assert(len(lit) >= 2)
if len(lit) < 2 {
return
}
if lit[0] == '`' {
return lit[1:len(lit)-1], false, true
}