File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 1+
2+ Got 30 seconds?
3+ Help improve Dev Proxy by answering a 1-question survey: https://aka.ms/devproxy/survey
Original file line number Diff line number Diff line change 11// Copyright (c) Microsoft Corporation.
22// Licensed under the MIT License.
33
4+ using System . Text . RegularExpressions ;
5+
46namespace Microsoft . DevProxy ;
57
68static class Announcement
@@ -12,6 +14,9 @@ public static async Task ShowAsync()
1214 var announcement = await GetAsync ( ) ;
1315 if ( ! string . IsNullOrEmpty ( announcement ) )
1416 {
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 ) ;
1520 await Console . Error . WriteLineAsync ( announcement ) ;
1621 }
1722 }
You can’t perform that action at this time.
0 commit comments