mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 09:24:57 +00:00
AK+Everywhere: Turn bool keep_empty to an enum in split* functions
This commit is contained in:
parent
f485db2501
commit
3e8b5ac920
44 changed files with 96 additions and 81 deletions
|
@ -245,7 +245,7 @@ ParsedInitialArguments::ParsedInitialArguments(Vector<String>& arguments, String
|
|||
if (placeholder.is_empty()) {
|
||||
m_all_parts.append({ arg });
|
||||
} else {
|
||||
auto parts = arg.view().split_view(placeholder, true);
|
||||
auto parts = arg.view().split_view(placeholder, SplitBehavior::KeepEmpty);
|
||||
some_argument_has_placeholder = some_argument_has_placeholder || parts.size() > 1;
|
||||
m_all_parts.append(move(parts));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue