Improve regex for catching printable characters
This commit is contained in:
parent
45e5af4492
commit
3c86965427
@ -41,7 +41,7 @@ class AsciiIo.VT
|
||||
@handleControlCharacter(data[0])
|
||||
return 1
|
||||
|
||||
else if match = data.match(/^([\x20-\x7e]|\xe2..|[\xa1-\xfe])+/)
|
||||
else if match = data.match(/^([\x20-\x7e]|[\xe2\xe3]..|[\xa1-\xfe])+/)
|
||||
@handlePrintableCharacters(match[0])
|
||||
return match[0].length
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user