Refactor string substitution

This commit is contained in:
Manuel Thalmann 2023-07-02 21:49:00 +02:00
parent d13527be19
commit 6e9ce12a41

View file

@ -237,8 +237,8 @@ class Context {
Measure-Object -Maximum).Maximum + 1;
$configName = "Folders";
$localPath = $localPath -replace "\","/";
$targetPath = $targetPath -replace "\","/";
$localPath = $localPath.Replace("\", "/");
$targetPath = $targetPath.Replace("\", "/");
if ($virtualFiles) {
$configName += "WithPlaceholders";