fix(StatusQ.Validators): fix regular expression test in validator
This commit is contained in:
parent
9dbb7ec53f
commit
56b2663e4d
|
@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue