From e5c0211f9c908a86adb50ca94670ba2a40c7a872 Mon Sep 17 00:00:00 2001 From: Kushagra Gour Date: Sun, 27 May 2012 16:42:00 +0530 Subject: [PATCH] skip character if matrix not found and few more special chars added --- isoblocks.coffee | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/isoblocks.coffee b/isoblocks.coffee index 8b07b17..d3554cc 100644 --- a/isoblocks.coffee +++ b/isoblocks.coffee @@ -134,8 +134,12 @@ class IsoBlocks else if ch is '-' then ch = 'dash' else if ch is ';' then ch = 'semicolon' else if ch is ':' then ch = 'colon' + else if ch is '/' then ch = 'f_slash' + else if ch is '[' then ch = 'l_square_bracket' + else if ch is ']' then ch = 'r_square_bracket' - current_ch = Characters[ch] + # Skip if character matrix not found + if not current_ch = Characters[ch] then return 0 for arr, i in current_ch for val, j in arr if val