Skip to content

v0.4.0

Latest
Compare
Choose a tag to compare
@mogelbrod mogelbrod released this 15 Nov 14:15
· 1 commit to master since this release
  • 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)