Skip to content

Commit

Permalink
Update Program.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
joaf123 committed Apr 18, 2024
1 parent 58ea992 commit 050c284
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -80,14 +80,8 @@ internal class Operations {
var items = lineData.Split(new[] { Environment.NewLine }, StringSplitOptions.RemoveEmptyEntries);

StringBuilder builder = new();
foreach (var item in items)
{
if (item.Contains("["))
{
builder.AppendLine(item.Substring(0, item.IndexOf("[", StringComparison.Ordinal) - 1));
} else {
builder.AppendLine(item);
}
foreach (var item in items) {
builder.AppendLine(item);
}

return (true, builder.ToString(), null)!;
Expand All @@ -99,4 +93,4 @@ internal class Operations {
}
}
}
}
}

0 comments on commit 050c284

Please sign in to comment.