Skip to content

Commit

Permalink
(magic-chunksGH-78) removed the unconditional replacement of \ with \\
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
nils-a committed Oct 4, 2021
1 parent 93ddeb2 commit 0f75d22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MagicChunks/VSTS/MagicChunks/transform.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 0f75d22

Please sign in to comment.