We released a new version of MaxLength just in time for me to present about it in my session, Designing User-Friendly Drupal Modules at Design4Drupal.
MaxLength 2.1.2 is a modest improvement with three bug fixes and one new feature. Seventeen Drupalistas helped on this release. A big thanks to each of you!
A More Accurate Character Count
The most exciting bug fix is that new lines and spaces are no longer miscounted. This was a long standing issue, first reported back in 2017 and the only major bug in the module.
New lines were being counted as three characters and spaces we counted as two.
A big thanks to:
Albert Volkman for writing the original patch,
Michael Vanetta (recrit) for re-rolling the patch each time a new major version of MaxLength came out, and
Adam Nagy (joevagyok) for polishing the patch’s code.
Display “Hard Limit” Instead of “Force Truncate” on Form Summary
A small, but annoying bug was both reported and fixed by Paul Leclerc (paul_leclerc). After configuring a hard limit on a field, the form display summary used the old verbiage, “Force truncate” but now it displays hard limit. So satisfying.
Some Code Clean Up
Improved Support for Link Fields
Previously MaxLength’s support link fields was limited specifically to the Drupal Core link field and the LinkIt field widgets. Michael Vanetta (recrit) rewrote the code so that any kind of link field widget is now compatible with MaxLength. Michael has contributed quite a few times to the project, so his continued support of the project is much appreciated.
Looking Ahead for MaxLength