mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 07:38:48 +00:00
Minor fix to strconv.unquote_string
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user