Merge pull request #1233 from sbenmoussati/SDA-3210

SDA-3210 Extending boolean regex to newlines
This commit is contained in:
mattias-symphony 2021-06-11 08:30:34 +02:00 committed by GitHub
commit cd3d9175b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -423,7 +423,7 @@ public class CustomActions
// Using regular expressions to replace the existing value in the config file with the
// one from the property. This is the same as the regex we used to have in the old
// Advanced Installer, which looked like this: "url"\s*:\s*".*" => "url": "[POD_URL]"
return System.Text.RegularExpressions.Regex.Replace(data, @"""" + name + @"""\s*:\s*.[^,]*",
return System.Text.RegularExpressions.Regex.Replace(data, @"""" + name + @"""\s*:\s*.[^,|\n|\r|\r\n]*",
@"""" + name + @""":" + value.Trim());
}