FGRibreau/node-truncate

Text cut short after URL

ersatzhero opened this issue · 1 comments

I am doing a call on a text where the result is cut off way too short and also the three dots at the end are missing:
The call
truncate(value, 330);

The text given to the function
<a href=\"https://www.example.org\">hello test</a>\n

The result of the call is
<a href=\"https://www.example.org/

Since the given string is only 65 characters long, I expect it to be not cut off at all.
Is there anything I can do to make it work or is it a bug?

Sorry, wrong library.