From 717b212ea4781b37481aadf0cb3a8b1591dfc778 Mon Sep 17 00:00:00 2001 From: Microsoft Graph DevX Tooling Date: Thu, 17 Oct 2024 19:03:14 +0300 Subject: [PATCH] Catered for "in" operator with + character that was being replaced with a space --- tools/Custom/PSCmdletExtensions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/Custom/PSCmdletExtensions.cs b/tools/Custom/PSCmdletExtensions.cs index 7b5c42c27a..f3b147082f 100644 --- a/tools/Custom/PSCmdletExtensions.cs +++ b/tools/Custom/PSCmdletExtensions.cs @@ -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) {