From fd081f342ec5599fce0aedce971c88464f4e2f6c Mon Sep 17 00:00:00 2001 From: Pallavi Sah Date: Fri, 17 Nov 2023 16:24:18 -0800 Subject: [PATCH] Fixing regex --- .../Parameter-Types-Should-Be-Consistent.test.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arm-ttk/testcases/deploymentTemplate/Parameter-Types-Should-Be-Consistent.test.ps1 b/arm-ttk/testcases/deploymentTemplate/Parameter-Types-Should-Be-Consistent.test.ps1 index ecf3edde..e1a8f261 100644 --- a/arm-ttk/testcases/deploymentTemplate/Parameter-Types-Should-Be-Consistent.test.ps1 +++ b/arm-ttk/testcases/deploymentTemplate/Parameter-Types-Should-Be-Consistent.test.ps1 @@ -50,7 +50,7 @@ foreach ($inner in $originalInnerTemplates) { $parent.parameters.$mappedParameterName.type -ne $innerTemplateParameterType # with a different type. ) { $innerTemplateParamValue = $innerTemplateParam.Value - $regexParam = "[.*parameters(?\(.*\))(\[.*?\]|\.|\,)(.*)\]" # https://regex101.com/r/V0dzVv/1 and https://regex101.com/r/ao6tsK/1 https://github.com/Azure/arm-ttk/issues/635 + $regexParam = "\[.*parameters(?\(.*\))(\[.*?\]|\.|\,)(.*)\]" # https://regex101.com/r/V0dzVv/1 and https://regex101.com/r/ao6tsK/1 https://github.com/Azure/arm-ttk/issues/635 if($null -ne $innerTemplateParamValue.value) { $innerTemplateParamValue = $innerTemplateParamValue.value