The test for tabs in a token was totally wrong. Now it is totally right.

This commit is contained in:
Corey Johnson
2012-05-15 10:12:56 -07:00
parent 6b3664a040
commit 80c066b03b

View File

@@ -17,7 +17,7 @@ class Token
[new Token(value: value1, type: @type), new Token(value: value2, type: @type)]
breakOutTabCharacters: (tabText) ->
return [this] unless /\t/.test(tabText)
return [this] unless /\t/.test(@value)
for substring in @value.match(/([^\t]+|\t)/g)
if substring == '\t'