Skip to content

Commit

Permalink
MAN-28 - remove characters not needed
Browse files Browse the repository at this point in the history
  • Loading branch information
achimber-moj committed Oct 16, 2024
1 parent 8c81d51 commit 69df04b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ class SentenceService(
val splitParam = "---------------------------------------------------------" + System.lineSeparator()
return notes.split(splitParam).map { note ->
val addedBy = Regex(
"^Comment added by .+? on \\d{2}\\/\\d{2}\\/\\d{4} at \\d{2}:\\d{2}"
"^Comment added by .+? on \\d{2}/\\d{2}/\\d{4} at \\d{2}:\\d{2}"
+ System.lineSeparator()
).find(note)?.value
val noteText = addedBy?.let { note.removePrefix(addedBy) } ?: note
Expand Down

0 comments on commit 69df04b

Please sign in to comment.