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 <[email protected]>
AuthorDate: Fri Jul 15 09:31:29 2022 +0100

    Fix parameter validation with the regex constraint
    
    Signed-off-by: Mykola Mandra <[email protected]>
---
 .../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;

Reply via email to