Skip to content

Commit

Permalink
quarkus-update - Improve cleanup of log lines
Browse files Browse the repository at this point in the history
  • Loading branch information
gsmet committed Nov 30, 2023
1 parent 07ca9f7 commit 30e10ff
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -351,13 +351,13 @@ private String clean(String line) {
return line;
}

String pattern = "[" + name() + "]";
String pattern = "[" + name() + "] ";

if (line.length() < pattern.length()) {
if (!line.startsWith(pattern)) {
return line;
}

return line.substring(pattern.length()).trim();
return line.substring(pattern.length());
}

private boolean matches(String line) {
Expand Down

0 comments on commit 30e10ff

Please sign in to comment.