Skip to content

Commit

Permalink
🐛 Fix unusual issue if an invisible char is not a string
Browse files Browse the repository at this point in the history
Fixes #397
  • Loading branch information
abe33 committed Oct 30, 2015
1 parent b514baf commit f261d5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mixins/canvas-drawer.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ class CanvasDrawer extends Mixin
invisibles.push line.invisibles.space if line.invisibles.space?
invisibles.push line.invisibles.tab if line.invisibles.tab?

///#{invisibles.map(_.escapeRegExp).join('|')}///g
///#{invisibles.filter((s) -> typeof s is 'string').map(_.escapeRegExp).join('|')}///g

# Internal: Draws a single token on the given context.
#
Expand Down

0 comments on commit f261d5a

Please sign in to comment.