mirror of
https://github.com/denoland/std.git
synced 2024-11-21 20:50:22 +00:00
b85d219148
Although the constructor of `CsvParseStream` accepts `fieldsPerRecord` option (see https://jsr.io/@std/csv@1.0.0-rc.5/doc/~/CsvParseStreamOptions) that ensures that every record has the specified (or inferred from the first row) number of fields, this option has no effect at all in the current implementation. To fix this issue, this patch implements the `fieldsPerRecord` logic in `CsvParseStream` together with sufficient amount of test cases. |
||
---|---|---|
.. | ||
testdata | ||
_io.ts | ||
_shared.ts | ||
deno.json | ||
mod.ts | ||
parse_stream_test.ts | ||
parse_stream.ts | ||
parse_test.ts | ||
parse.ts | ||
stringify_stream_test.ts | ||
stringify_stream.ts | ||
stringify_test.ts | ||
stringify.ts |