From 3c86965427f2ebe52cf38876da00bd29f1cb6628 Mon Sep 17 00:00:00 2001 From: Marcin Kulik Date: Fri, 27 Apr 2012 23:12:41 +0200 Subject: [PATCH] Improve regex for catching printable characters --- app/assets/javascripts/player/vt.js.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/player/vt.js.coffee b/app/assets/javascripts/player/vt.js.coffee index d806fd1..f06eccb 100644 --- a/app/assets/javascripts/player/vt.js.coffee +++ b/app/assets/javascripts/player/vt.js.coffee @@ -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