Browse Source

tests: don't print control characters

Fabian 1 year ago
parent
commit
fa0a75c927
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tests/full/run.js

+ 1 - 1
tests/full/run.js

@@ -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)