Skip to content

Releases: go-sanitize/sanitize

Adding custom sanitizers and custom trim tags

13 Jun 00:57
4634691
Compare
Choose a tag to compare
  • Adding the option to provide custom sanitizer functions.
  • Adding the option to provide custom characters to the trim sanitizer.

Fix string "title" behavior for characters with punctuation marks

13 Jul 03:38
469f31e
Compare
Choose a tag to compare

Fixes #11 by changing behavior of the "title" tag to first lowercase the entire string, then use Go's built in strings.Title function. This maintains the existing behavior of lowercasing every character except the first in each word but also prevents characters like á from causing the string to be split into multiple words.

First release

09 Jul 20:48
172e369
Compare
Choose a tag to compare
v1.0.0

added maximum size for slices (#10)