RED-3572 -> Reason starts with comma

This commit is contained in:
Valentin Mihai 2022-03-16 15:11:28 +02:00
parent 9a30a9fba7
commit 4aaff26282

View File

@ -328,6 +328,9 @@ export class AnnotationWrapper {
if (entry.reason) {
content += entry.reason + '\n\n';
//remove leading and trailing commas and whitespaces
content = content.replace(/^[, ]*|[, ]*$/g, '');
content = content.substring(0, 1).toUpperCase() + content.substring(1);
}
if (annotationWrapper.legalBasis) {