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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user