mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-12-15 03:59:15 +08:00
fix #249 Characters not being properly escaped in Python plugins
This commit is contained in:
parent
6d3f3985a2
commit
6b6ab5e752
@ -90,8 +90,8 @@ namespace Wox.Core.Plugin
|
|||||||
private string RepalceEscapes(string str)
|
private string RepalceEscapes(string str)
|
||||||
{
|
{
|
||||||
return str.Replace(@"\", @"\\") //Escapes in ProcessStartInfo
|
return str.Replace(@"\", @"\\") //Escapes in ProcessStartInfo
|
||||||
.Replace(@"\", @"\\"); //Escapes itself when passed to client
|
.Replace(@"\", @"\\") //Escapes itself when passed to client
|
||||||
//todo: replace "
|
.Replace(@"""", @"\\""""");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user