Skip to content

Commit 9e268de

Browse files
authored
Merge pull request #2999 from microsoftgraph/2973-filter-is-incorrectly-handling-special-characters
Handles ``+`` character in supported equality and function operators in filter expressions
2 parents 6b6d981 + 445be33 commit 9e268de

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)