Uses existing method to get escaped text for console

This commit is contained in:
Alex Johnson
2021-03-04 11:47:25 -05:00
parent 3725980462
commit 1ae2483110

View File

@@ -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));
}
}
}