| author | |
| committer | |
| log | 022521ab04d0787bccd9352164fead7af31c6a8f |
| tree | 244481f953015f85b508524c803da86540eee776 |
| parent | 66512f6b2139bbb5efa3421e6357f116f19b7024 |
278/284 tests passed; 6 failed1 files changed, 1 insertions(+), 0 deletions(-)
json.zig+1| ... | ... | @@ -138,6 +138,7 @@ fn parseString(alloc: std.mem.Allocator, p: *Parser) anyerror!?StringIndex { |
| 138 | 138 | break; |
| 139 | 139 | } |
| 140 | 140 | if (c != '\\') { |
| 141 | if (c < 0x20) return error.JsonExpectedTODO; | |
| 141 | 142 | const l = std.unicode.utf8CodepointSequenceLength(c) catch unreachable; |
| 142 | 143 | const b = p.temp.items[p.idx - l ..][0..l]; |
| 143 | 144 | try characters.appendSlice(b); |