cut: Don't ignore empty fields
This commit is contained in:
parent
b17aa47769
commit
230a873e0e
Notes:
sideshowbarker
2024-07-17 17:49:11 +09:00
Author: https://github.com/tcl3 Commit: https://github.com/SerenityOS/serenity/commit/230a873e0e Pull-request: https://github.com/SerenityOS/serenity/pull/19614
1 changed files with 1 additions and 1 deletions
|
@ -136,7 +136,7 @@ static void process_line_bytes(StringView line, Vector<Range> const& ranges)
|
|||
|
||||
static void process_line_fields(StringView line, Vector<Range> const& ranges, char delimiter)
|
||||
{
|
||||
auto string_split = DeprecatedString(line).split(delimiter);
|
||||
auto string_split = DeprecatedString(line).split(delimiter, SplitBehavior::KeepEmpty);
|
||||
Vector<DeprecatedString> output_fields;
|
||||
|
||||
for (auto& range : ranges) {
|
||||
|
|
Loading…
Add table
Reference in a new issue