Skip to content

Commit

Permalink
MAN-28 - limit licence note to 1500 characters
Browse files Browse the repository at this point in the history
  • Loading branch information
achimber-moj committed Oct 16, 2024
1 parent 9a2f401 commit c2c43fe
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ class SentenceService(
LicenceConditionNote(
createdBy,
dateCreatedBy?.let { LocalDate.parse(it, DateTimeFormatter.ofPattern("d/MM/yyyy")) },
noteText.removeSuffix(System.lineSeparator()),
noteText.removeSuffix(System.lineSeparator()).chunked(1500)[0],
note.let { n ->
when {
n.length > noteLength -> true
Expand Down

0 comments on commit c2c43fe

Please sign in to comment.