From 1ae2483110c55450d281b35908a691c4516980a7 Mon Sep 17 00:00:00 2001 From: Alex Johnson Date: Thu, 4 Mar 2021 11:47:25 -0500 Subject: [PATCH] Uses existing method to get escaped text for console --- Pepperdash Core/Pepperdash Core/CommunicationExtras.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Pepperdash Core/Pepperdash Core/CommunicationExtras.cs b/Pepperdash Core/Pepperdash Core/CommunicationExtras.cs index 6c40979..207f438 100644 --- a/Pepperdash Core/Pepperdash Core/CommunicationExtras.cs +++ b/Pepperdash Core/Pepperdash Core/CommunicationExtras.cs @@ -141,7 +141,7 @@ namespace PepperDash.Core public static string GetDebugText(string text) { - return Regex.Replace(text, @"[^\u0000-\u007F]|\p{Cc}", a => string.Format("[{0:X2}]", (byte)a.Value[0])); + return Regex.Replace(text, @"[^\u0000-\u007F]|\p{Cc}", a => GetEscapedText(a.Value)); } } } \ No newline at end of file