From 56b2663e4d85df48dbf0e2a5a5292dcca6813f55 Mon Sep 17 00:00:00 2001 From: Jonathan Rainville Date: Thu, 10 Mar 2022 11:08:10 -0500 Subject: [PATCH] fix(StatusQ.Validators): fix regular expression test in validator --- .../Controls/Validators/StatusRegularExpressionValidator.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/StatusQ/Controls/Validators/StatusRegularExpressionValidator.qml b/src/StatusQ/Controls/Validators/StatusRegularExpressionValidator.qml index 8a6b0157..ec13751f 100644 --- a/src/StatusQ/Controls/Validators/StatusRegularExpressionValidator.qml +++ b/src/StatusQ/Controls/Validators/StatusRegularExpressionValidator.qml @@ -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) } }