mirror of
https://github.com/PepperDash/PepperDashCore.git
synced 2026-04-12 20:16:34 +00:00
Simplifies regex for detecting non-printable characters
This commit is contained in:
parent
1ae2483110
commit
e7d54092d8
1 changed files with 1 additions and 1 deletions
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue