josephschmitt/Clamp.js

unhandled exception for strings with the only letter

Opened this issue · 1 comments

"truncate" function works incorrect in case of one-letter-string.
It finds no valid chuncks (line 198) and finally falls with "elem.lastChild is null" error in "getLastChild".

same here.
I just open the examples/example1.html page and do nothing.