1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 21:07:34 +00:00

AK: Replace the boolean parameter of StringView::lines with a named enum

This commit is contained in:
Timothy Flynn 2024-03-08 11:27:48 -05:00 committed by Tim Flynn
parent d9349f1510
commit 07a27b2ec0
4 changed files with 9 additions and 5 deletions

View file

@ -303,7 +303,7 @@ public:
{
return m_view.visit(
[](StringView view) {
auto views = view.lines(false);
auto views = view.lines(StringView::ConsiderCarriageReturn::No);
Vector<RegexStringView> new_views;
for (auto& view : views)
new_views.empend(view);