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:39 UTC

[brooklyn-ui] branch master updated: 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 master
in repository https://gitbox.apache.org/repos/asf/brooklyn-ui.git


The following commit(s) were added to refs/heads/master by this push:
     new 416ce30a Fix parameter validation with the regex constraint
     new e403c7c6 Merge pull request #350 from algairim/fixes/blueprint-service
416ce30a is described below

commit 416ce30a0e9d5271d9d6baa4adaf48d08ee02b41
Author: Mykola Mandra <my...@cloudsoft.io>
AuthorDate: Fri Jul 15 09:31:29 2022 +0100

    Fix parameter validation with the regex constraint
    
    Signed-off-by: Mykola Mandra <my...@cloudsoft.io>
---
 .../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 9bebe048..4307b4d7 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;