We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8594936 commit 4ebc1b8Copy full SHA for 4ebc1b8
shaky.coffee
@@ -332,7 +332,7 @@ parseASCIIArt = (string) ->
332
333
# Check if it can be concatenated with a previously found text annotation.
334
prev = figures[figures.length - 1]
335
- if prev.constructor.name is 'Text' and
+ if prev?.constructor.name is 'Text' and
336
prev.x0 + prev.text.length + 1 is start
337
# If they touch concatentate them.
338
prev.text = "#{prev.text} #{text}"
0 commit comments