This is an automated email from the ASF dual-hosted git repository.
heneveld 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 a2fcf0a1 error not showing when using dsl for a parameter with a regex
constraint
a2fcf0a1 is described below
commit a2fcf0a1cf122dfef48aa725add50562acdcf872
Author: zan-mateusz <[email protected]>
AuthorDate: Thu Dec 1 16:39:00 2022 +0000
error not showing when using dsl for a parameter with a 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 5319de8b..33ab8b11 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
@@ -489,7 +489,7 @@ function BlueprintService($log, $q, $sce, paletteApi,
iconGenerator, dslService,
break;
case 'regex':
let matchFullLine = '^' + args + '$';
- if (isSet() && !(new
RegExp(matchFullLine).test(val()))) {
+ if (isSet() && !(val() instanceof Dsl) && !(new
RegExp(matchFullLine).test(val()))) {
message = `<samp>${config.name}</samp> does not
match the required format: <samp>${args}</samp>`;
}
break;