mirror of
https://github.com/odin-lang/Odin.git
synced 2026-06-06 02:34:05 +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 == `""` {
|
||||
return "", false, true
|
||||
}
|
||||
s = s[1:len(s)-1]
|
||||
|
||||
if contains_rune(s, '\n') >= 0 {
|
||||
return s, false, false
|
||||
|
||||
Reference in New Issue
Block a user