const BaseValidator = require('./base-validator');
const validator = require('validator');

class Email extends BaseValidator
{
    init() {
        super.init();
        this.message = '{attribute} is not a valid email address.';
    }

    validateValue(value) {
        if (!validator.isEmail(value)) {
            return [this.message, this.attribute];
        }
    }
}

module.exports = Email;
@@ -332,16 +332,28 @@
 message,
+ %7Battribute:
  this.at
@@ -359,16 +359,17 @@
 ttribute
+%7D
 %5D;%0A     

Fix error message for email validator