mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-12-14 11:39:16 +08:00
fix #249 Characters not being properly escaped in Python plugins
This commit is contained in:
parent
6d3f3985a2
commit
6b6ab5e752
@ -89,9 +89,9 @@ 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