RED-4590: Group Regex so precedence is obvious.
This commit is contained in:
parent
5521cf925c
commit
81fe84eb02
@ -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);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user