You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@brooklyn.apache.org by iu...@apache.org on 2022/07/15 08:36:44 UTC

[brooklyn-ui] 01/01: Revert "Fix parameter validation with the regex constraint"

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 <iu...@gmail.com>
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;