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 r4bbit.eth
parent 9dbb7ec53f
commit 56b2663e4d
1 changed files with 2 additions and 2 deletions

View File

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