fix(tech): Replaced replaceAll methods with replace to avoid errors in some older browsers.

Squashed commit of the following:

commit 559c099720500a5fa55d92456cc555ab5d980e1f
Author: Erik Tiekstra <erik.tiekstra@arbetsformedlingen.se>
Date:   Thu Oct 14 13:14:16 2021 +0200

    Replaced replaceAll with replace method with regex to avoid older browser-problems
This commit is contained in:
Erik Tiekstra
2021-10-15 11:43:35 +02:00
parent 9a23e8b006
commit c68d69be3f
7 changed files with 7 additions and 10 deletions

View File

@@ -33,7 +33,7 @@ export class EmployeeInviteComponent {
get emailsControlValueAsArray(): string[] {
return (this.emailsControl.value as string)
.replaceAll(/\n|\t|\r/g, '')
.replace(/\n|\t|\r/g, '')
.split(/[\s,;:]+/)
.filter(email => !!email);
}