Exclude Delete character from printable

This commit is contained in:
MikeCAT 2025-08-07 14:58:59 +00:00
parent 2a1294f1c0
commit bd10c0ed6b

View file

@ -177,7 +177,7 @@ class Utils {
*/
static printable(str, preserveWs=false, onlyAscii=false) {
if (onlyAscii) {
return str.replace(/[^\x20-\x7f]/g, ".");
return str.replace(/[^\x20-\x7e]/g, ".");
}
// eslint-disable-next-line no-misleading-character-class