Skip to content

Commit

Permalink
#2278 Fix regular expression
Browse files Browse the repository at this point in the history
  • Loading branch information
To-om committed Dec 7, 2021
1 parent f7829a3 commit c04b835
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ object Conversion {

def withCaseTemplate(caseTemplate: RichCaseTemplate): InputCase =
InputCase(
title = caseTemplate.titlePrefix.fold("")(_.replaceAll("(?m)\\s*$", " ")) + inputCase.title,
title = caseTemplate.titlePrefix.fold("")(_.replaceAll("(?m)\\s+$", "") + " ") + inputCase.title,
description = inputCase.description,
severity = inputCase.severity orElse caseTemplate.severity,
startDate = inputCase.startDate,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ object Conversion {

def withCaseTemplate(caseTemplate: RichCaseTemplate): InputCase =
InputCase(
title = caseTemplate.titlePrefix.fold("")(_.replaceAll("(?m)\\s*$", " ")) + inputCase.title,
title = caseTemplate.titlePrefix.fold("")(_.replaceAll("(?m)\\s+$", "") + " ") + inputCase.title,
description = inputCase.description,
severity = inputCase.severity orElse caseTemplate.severity,
startDate = inputCase.startDate,
Expand Down

0 comments on commit c04b835

Please sign in to comment.