Skip to content

Commit 66baa65

Browse files
committed
Omitted unescaped string with display name from replacing + with an empty space
1 parent b14354a commit 66baa65

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
@@ -28,7 +28,7 @@ internal static string UnescapeString(this PSCmdlet cmdlet, string value)
2828
try
2929
{
3030
var unescapedString = Uri.UnescapeDataString(value);
31-
return unescapedString.Replace('+', ' ');
31+
return value.Contains("displayName") ? unescapedString: unescapedString.Replace('+', ' ');
3232
}
3333
catch (UriFormatException ex)
3434
{

0 commit comments

Comments
 (0)