Improve regex for catching printable characters

This commit is contained in:
Marcin Kulik 2012-04-27 23:12:41 +02:00
parent 45e5af4492
commit 3c86965427

View File

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