rviscomi/trunk8 — pull request #42 by cltrudeau (2013-11-15 17:41:54+00:00)
Title: word boundary feature

- added word boundary checking after the bite search …

- trunk8 now takes an optional "wordBoundary" parameter that would be a string
containing any value that you want to use as a word boundary

example:

$('too-long').trunk8({
wordBoundary:' -',
});

The above would use space or hyphen as a word boundary and after the bite
search is run backs the string up until it finds a boundary character.