Skip to content

Commit

Permalink
Remove trailing spaces when normalizing Description
Browse files Browse the repository at this point in the history
… and make carriage-return optional.
  • Loading branch information
tobiasgradl authored Dec 3, 2024
1 parent 575366b commit 954a316
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ private String normalizeDescription(String description) {
if (description == null) {
return null;
}
return description.replaceAll("\\r\\n", "\n").trim();
return description.replaceAll(" *(\\r)?\\n", "\n").trim();
}

public String mapSourceDescription(String sourceDescription, JiraService jiraSource) {
Expand Down

0 comments on commit 954a316

Please sign in to comment.