mirror of
https://github.com/vlang/v.git
synced 2025-08-03 09:47:15 -04:00
parent
fc640f7ce0
commit
d9b808cdc3
@ -491,7 +491,7 @@ fn (c &Checker) check_quoted_escapes(q ast.Quoted) ! {
|
||||
}
|
||||
}
|
||||
}
|
||||
if next_ch in [`\t`, `\n`, ` `] {
|
||||
if next_ch in [`\t`, `\r`, `\n`, ` `] {
|
||||
s.next()
|
||||
continue
|
||||
}
|
||||
|
9
vlib/toml/tests/quoted_string_crlf_test.v
Normal file
9
vlib/toml/tests/quoted_string_crlf_test.v
Normal file
@ -0,0 +1,9 @@
|
||||
import toml
|
||||
|
||||
fn test_quoted_string_crlf() {
|
||||
toml_txt := 'str1 = """tcc \\\r\nabc \\\r\n123"""'
|
||||
toml_doc := toml.parse_text(toml_txt) or { panic(err) }
|
||||
|
||||
value := toml_doc.value('str1').string()
|
||||
assert value == 'tcc abc 123'
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user