tests: don't print control characters
This commit is contained in:
parent
3c81e70794
commit
fa0a75c927
|
@ -47,7 +47,7 @@ function string_to_bytearray(str)
|
|||
|
||||
function bytearray_to_string(arr)
|
||||
{
|
||||
return String.fromCharCode.apply(String, arr);
|
||||
return String.fromCharCode.apply(String, arr).replace(/[\x00-\x08\x0b-\x1f\x7f\x80-\xff]/g, " ");
|
||||
}
|
||||
|
||||
function screen_to_text(s)
|
||||
|
|
Loading…
Reference in a new issue