Skip to content

Commit 717b212

Browse files
Microsoft Graph DevX ToolingMicrosoft Graph DevX Tooling
authored andcommitted
Catered for "in" operator with + character that was being replaced with a space
1 parent 3e6dacf commit 717b212

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/Custom/PSCmdletExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ internal static string UnescapeString(this PSCmdlet cmdlet, string value)
2929
try
3030
{
3131
var unescapedString = Uri.UnescapeDataString(value);
32-
return value.EndsWith("'") ? unescapedString: unescapedString.Replace('+', ' ');
32+
return (value.EndsWith("'") || value.EndsWith("')")) ? unescapedString: unescapedString.Replace('+', ' ');
3333
}
3434
catch (UriFormatException ex)
3535
{

0 commit comments

Comments
 (0)