Files
Swiftgram/AsyncDisplayKit
yury f2012df3af Fix Out of bounds error
Actually it is possible that truncated string is longer then original
string.

For example, original string:

```
hello
this is
very long
message here
and there
```

with maximumNumberOfLines=4, truncationAttributedString = ' ...' and
additionalTruncationMessage = 'read more'

will give

```
hello
this is
very long
message here ... read more
```

So `[attributedString attribute:attributeName atIndex:characterIndex
longestEffectiveRange:&range inRange:visibleRange]` will crash.
2016-01-25 22:25:12 +03:00
..
2016-01-24 23:14:43 -06:00
2016-01-21 15:20:47 -08:00
2016-01-25 22:25:12 +03:00
2016-01-24 23:51:34 -06:00