mirror of
https://github.com/PepperDash/PepperDashCore.git
synced 2026-02-07 16:54:52 +00:00
Simplifies regex for detecting non-printable characters
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user