We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e6dacf commit 717b212Copy full SHA for 717b212
tools/Custom/PSCmdletExtensions.cs
@@ -29,7 +29,7 @@ internal static string UnescapeString(this PSCmdlet cmdlet, string value)
29
try
30
{
31
var unescapedString = Uri.UnescapeDataString(value);
32
- return value.EndsWith("'") ? unescapedString: unescapedString.Replace('+', ' ');
+ return (value.EndsWith("'") || value.EndsWith("')")) ? unescapedString: unescapedString.Replace('+', ' ');
33
}
34
catch (UriFormatException ex)
35
0 commit comments