RED-4590: Group Regex so precedence is obvious.

This commit is contained in:
George 2023-02-06 14:43:13 +02:00
parent 5521cf925c
commit 81fe84eb02

View File

@ -391,7 +391,7 @@ export class AnnotationWrapper implements IListable, Record<string, unknown> {
if (entry.reason) {
content += entry.reason + '\n\n';
//remove leading and trailing commas and whitespaces
content = content.replace(/^[, ]*|[, ]*$/g, '');
content = content.replace(/(^[, ]*)|([, ]*$)/g, '');
content = content.substring(0, 1).toUpperCase() + content.substring(1);
}