Make strconv more robust
This commit is contained in:
1 parent
1e17d5d86f
commit
1d7c9cf872
1 file changed
+3
-1
@@ -882,7 +882,9 @@ unquote_string :: proc(lit: string, allocator := context.allocator) -> (res: str
|
|||||||
return -1
|
return -1
|
||||||
}
|
}
|
||||||
|
|
||||||
assert(len(lit) >= 2)
|
if len(lit) < 2 {
|
||||||
|
return
|
||||||
|
}
|
||||||
if lit[0] == '`' {
|
if lit[0] == '`' {
|
||||||
return lit[1:len(lit)-1], false, true
|
return lit[1:len(lit)-1], false, true
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user