Skip to content

Releases: mogelbrod/widont

v0.4.0

15 Nov 14:15
Compare
Choose a tag to compare
  • Add optional minWords argument (3rd argument to widont).
  • (BREAKING CHANGE) Specify minWords=3 as default to avoid forcing strings only consisting of two words to be kept together, as that could lead to them overflowing. If you can retain the original behaviour by passing 2 as the 3rd argument to widont():
    widont('my string', 'unicode', 2)