Skip to content

Commit

Permalink
Added missing code
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaditya Sharma committed Mar 28, 2024
1 parent 8b07681 commit 2354e64
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions build_and_deploy/utils/arm_template_utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 2354e64

Please sign in to comment.