mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-21 16:47:28 +01:00
Add "#json: bad new-line in a string"
This commit is contained in:
1 parent
8d779ae1cd
commit
6bc3f5716d
3 files changed
+10
No files matched your search
@@ -16,6 +16,7 @@ pub status "#bad C0 control code"
|
||||
pub status "#bad UTF-8"
|
||||
pub status "#bad backslash-escape"
|
||||
pub status "#bad input"
|
||||
pub status "#bad new-line in a string"
|
||||
pub status "#bad quirk combination"
|
||||
pub status "#unsupported number length"
|
||||
pub status "#unsupported recursion depth"
|
||||
|
||||
@@ -846,6 +846,9 @@ pub func decoder.decode_tokens?(dst: base.token_writer, src: base.io_reader, wor
|
||||
args.src.skip_u32_fast!(actual: 1, worst_case: 1)
|
||||
continue.string_loop_outer
|
||||
}
|
||||
if char == 0x8A {
|
||||
return "#bad new-line in a string"
|
||||
}
|
||||
return "#bad C0 control code"
|
||||
}
|
||||
if this.quirks[QUIRK_REPLACE_INVALID_UNICODE - QUIRKS_BASE] {
|
||||
|
||||
Reference in new issue
Block a user