From 0f75d2238818b0ee9e33b009e4f4007a9a97f914 Mon Sep 17 00:00:00 2001 From: Nils Andresen <nils@nils-andresen.de> Date: Mon, 4 Oct 2021 14:11:52 +0200 Subject: [PATCH] (GH-78) removed the unconditional replacement of \ with \\ When parsing the input for the DevOps task, every occurrence of "\" was replaced by "\\" - probably in the assumption that every JSON specified as transformation will always be incorrectly escaped. --- src/MagicChunks/VSTS/MagicChunks/transform.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MagicChunks/VSTS/MagicChunks/transform.ps1 b/src/MagicChunks/VSTS/MagicChunks/transform.ps1 index 0bde7de..c95c170 100644 --- a/src/MagicChunks/VSTS/MagicChunks/transform.ps1 +++ b/src/MagicChunks/VSTS/MagicChunks/transform.ps1 @@ -55,7 +55,7 @@ try { } } - foreach($t in ($transformations.Replace("\", "\\") | ConvertFrom-Json).psobject.properties) { + foreach($t in ($transformations | ConvertFrom-Json).psobject.properties) { Write-Host "Transformation found: $($t.name): $($t.value)" $transforms.Add($t.name, $t.value) }