We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 76f2bea commit 9adc32dCopy full SHA for 9adc32d
dev-proxy/Announcement.cs
@@ -1,6 +1,8 @@
1
// Copyright (c) Microsoft Corporation.
2
// Licensed under the MIT License.
3
4
+using System.Text.RegularExpressions;
5
+
6
namespace Microsoft.DevProxy;
7
8
static class Announcement
@@ -12,6 +14,9 @@ public static async Task ShowAsync()
12
14
var announcement = await GetAsync();
13
15
if (!string.IsNullOrEmpty(announcement))
16
{
17
+ // Unescape the announcement to remove any escape characters
18
+ // in case we're using ANSI escape codes for color formatting
19
+ announcement = Regex.Unescape(announcement);
20
await Console.Error.WriteLineAsync(announcement);
21
}
22
0 commit comments