Fixed issue with utforandeverksamheter in employees
This commit is contained in:
@@ -16,7 +16,7 @@ export function EmailValidator(label = 'Fältet'): ValidatorFn {
|
||||
export function CommaSeparatedEmailValidator(): ValidatorFn {
|
||||
return (control: AbstractControl): ValidationError => {
|
||||
if (control && control.value) {
|
||||
const values: string[] = (control.value as string).replaceAll(' ', '').split(',');
|
||||
const values: string[] = (control.value as string).trim().split(',');
|
||||
const invalidEmailaddresses = [];
|
||||
|
||||
values.forEach(value => {
|
||||
|
||||
Reference in New Issue
Block a user