Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ exclude = '^DROP$' # then drop records whose listed fields match
```

- `max-field-length`: Optional. Any record where any field value exceeds this
character length is dropped.
length in bytes (UTF-8 encoded) is dropped.
- `csv.filter` is an optional single-block-per-table section with three keys:
- `fields`: list of field names this filter examines. Every name must appear
in the table's `fields` (validated at config-load time).
Expand Down
4 changes: 2 additions & 2 deletions src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -253,8 +253,8 @@ pub struct CsvConfig {
/// strict default literal `"false"` is required. Unanchored by default.
#[serde(rename = "false", deserialize_with = "deserialize_optional_regex")]
pub false_pattern: Option<Regex>,
/// Drop records where any field value exceeds this character length.
/// `None` disables the limit.
/// Drop records where any field value exceeds this length in bytes
/// (UTF-8 encoded). `None` disables the limit.
#[serde(rename = "max-field-length")]
pub max_field_length: Option<usize>,
/// Optional include/exclude filter applied at CSV load time.
Expand Down
Loading