Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
Word truncation #16190
Patched the truncate strings method to include truncation by word
Done and tested, less objects allocated and everything is working fine.
Also added rtruncate to get the rest of a truncated string. This is useful in web apps when truncating strings and having a 'read more...' link, the rest of the string is now easily gotten.
I moved your changelog entry to the top, and fixed an issue with handling of multi-line strings in my suggested regexp.
After I pushed, I noticed that your git committer name is "root"