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) } }