Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
setCustomMessages() {
validationMessages.minLength = this.configuration.messages.minLength || validationMessages.minLength;
validationMessages.maxLength = this.configuration.messages.maxLength || validationMessages.maxLength;
validationMessages.matches = this.configuration.messages.pattern || validationMessages.matches;
validationMessages.email = this.configuration.messages.format_email || validationMessages.email;
}
setCustomMessages() {
validationMessages.minLength = this.configuration.messages.minLength || validationMessages.minLength;
validationMessages.maxLength = this.configuration.messages.maxLength || validationMessages.maxLength;
validationMessages.matches = this.configuration.messages.pattern || validationMessages.matches;
validationMessages.email = this.configuration.messages.format_email || validationMessages.email;
}
add() {