mirror of
https://github.com/finos/SymphonyElectron.git
synced 2024-12-27 17:31:36 -06:00
SDA-3210 Extending boolean regex to newlines
This commit is contained in:
parent
59e0678775
commit
328ccef862
@ -423,7 +423,7 @@ public class CustomActions
|
|||||||
// Using regular expressions to replace the existing value in the config file with the
|
// 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
|
// 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]"
|
// 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());
|
@"""" + name + @""":" + value.Trim());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user