mirror of
https://github.com/atom/atom.git
synced 2026-01-24 06:18:03 -05:00
The test for tabs in a token was totally wrong. Now it is totally right.
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user