Skip to content

Commit

Permalink
Catered for "in" operator with + character that was being replaced wi…
Browse files Browse the repository at this point in the history
…th a space
  • Loading branch information
Microsoft Graph DevX Tooling authored and Microsoft Graph DevX Tooling committed Oct 17, 2024
1 parent 3e6dacf commit 717b212
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/Custom/PSCmdletExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ internal static string UnescapeString(this PSCmdlet cmdlet, string value)
try
{
var unescapedString = Uri.UnescapeDataString(value);
return value.EndsWith("'") ? unescapedString: unescapedString.Replace('+', ' ');
return (value.EndsWith("'") || value.EndsWith("')")) ? unescapedString: unescapedString.Replace('+', ' ');
}
catch (UriFormatException ex)
{
Expand Down

0 comments on commit 717b212

Please sign in to comment.