This is an automated email from the ASF dual-hosted git repository.

iuliana pushed a commit to branch revert-350-fixes/blueprint-service
in repository https://gitbox.apache.org/repos/asf/brooklyn-ui.git

commit 8365dab972599726539d9ede9cc04e40accbff37
Author: Iuliana Cosmina <[email protected]>
AuthorDate: Fri Jul 15 09:36:39 2022 +0100

    Revert "Fix parameter validation with the regex constraint"
---
 .../app/components/providers/blueprint-service.provider.js              | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/ui-modules/blueprint-composer/app/components/providers/blueprint-service.provider.js
 
b/ui-modules/blueprint-composer/app/components/providers/blueprint-service.provider.js
index 4307b4d7..9bebe048 100644
--- 
a/ui-modules/blueprint-composer/app/components/providers/blueprint-service.provider.js
+++ 
b/ui-modules/blueprint-composer/app/components/providers/blueprint-service.provider.js
@@ -487,7 +487,7 @@ function BlueprintService($log, $q, $sce, paletteApi, 
iconGenerator, dslService,
                         }
                         break;
                     case 'regex':
-                        if (isSet() && !(new RegExp(args).test(val()))) {
+                        if (isSet() && !(new RegExp(args).test(val))) {
                             message = `<samp>${config.name}</samp> does not 
match the required format: <samp>${args}</samp>`;
                         }
                         break;

Reply via email to