fix(StatusQ.Validators): fix regular expression test in validator

This commit is contained in:
Jonathan Rainville 2022-03-10 11:08:10 -05:00 committed by Michał Cieślak
parent 3363469109
commit ae3bb01c10
1 changed files with 2 additions and 2 deletions

View File

@ -53,8 +53,8 @@ StatusValidator {
errorMessage: "Please enter a valid regular expression."
validatorObj: RegularExpressionValidator { regularExpression: root.regularExpression }
validate: function (t) {
validate: function (value) {
// Basic validation management
return root.validatorObj.validate() === RegularExpressionValidator.Acceptable
return root.validatorObj.regularExpression.test(value)
}
}