mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00: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
|
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