Simplifies regex for detecting non-printable characters

This commit is contained in:
Alex Johnson
2021-03-04 12:07:07 -05:00
parent 1ae2483110
commit e7d54092d8

View File

@@ -141,7 +141,7 @@ namespace PepperDash.Core
public static string GetDebugText(string text)
{
return Regex.Replace(text, @"[^\u0000-\u007F]|\p{Cc}", a => GetEscapedText(a.Value));
return Regex.Replace(text, @"[^\u0020-\u007E]", a => GetEscapedText(a.Value));
}
}
}