huang47/nodejs-html-truncate — pull request #10 by tildedave (2014-12-22 22:07:44+00:00)
Title: Fixes end truncate behavior

Not sure of a shorter example that reproduces this bug unfortunately.

The issue seems to be from the line:

```javascript
if (total + index > maxLength) {
// exceed given `maxLength`, dump everything to clear stack
content += (string.substring(0, maxLength - total));
```

If the "dump everything" happens then it doesn't add an ellipsis