Skip to content

Fix string "title" behavior for characters with punctuation marks

Compare
Choose a tag to compare
@mattwelke mattwelke released this 13 Jul 03:38
· 5 commits to master since this release
469f31e

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.