mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-09 13:01:38 -07:00
Make strconv more robust
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user