test: fix usage of email validator
This commit is contained in:
@@ -3,5 +3,5 @@ import { email as emailValidator } from '@vuelidate/validators';
|
||||
export const validEmailsByComma = value => {
|
||||
if (!value.length) return true;
|
||||
const emails = value.replace(/\s+/g, '').split(',');
|
||||
return emails.every(email => emailValidator(email));
|
||||
return emails.every(email => emailValidator.$validator(email));
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user