From 2354e641b03682cd9f86c8e3f9778208546367b5 Mon Sep 17 00:00:00 2001 From: Aaditya Sharma Date: Thu, 28 Mar 2024 13:45:20 +0530 Subject: [PATCH] Added missing code --- build_and_deploy/utils/arm_template_utils.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/build_and_deploy/utils/arm_template_utils.ts b/build_and_deploy/utils/arm_template_utils.ts index 4853f94..9cf9935 100644 --- a/build_and_deploy/utils/arm_template_utils.ts +++ b/build_and_deploy/utils/arm_template_utils.ts @@ -84,6 +84,16 @@ function replaceBackSlash(inputString: string): string { let outputString: string = inputString; + while(outputString.indexOf(`\\\\\\\\`)>=0) + { + outputString = outputString.substr(0, outputString.indexOf(`\\\\\\\\`)) + backslash + backslash + backslash + backslash + outputString.substr(outputString.indexOf(`\\\\\\\\`)+4); + } + + while(outputString.indexOf(`\\\\`)>=0) + { + outputString = outputString.substr(0, outputString.indexOf(`\\\\`)) + backslash + backslash + outputString.substr(outputString.indexOf(`\\\\`)+2); + } + while (outputString.indexOf(`\\\"`) >= 0) { outputString = outputString.substr(0, outputString.indexOf(`\\\"`)) + quote + outputString.substr(outputString.indexOf(`\\\"`) + 2); }