tsackton / taelgar

0 stars 0 forks source link

Support better format options #27

Closed msackton closed 9 months ago

msackton commented 9 months ago

This change does three things:

  1. It makes it easier to create separate "first" and "rest" casing rules (like title case for first, regular case for rest) by introducing a "k" (keep case) format specifier. This makes for the more readable :k;t rather than trying to make :;k work
  2. Nonetheless, this also makes the first format allowed to be empty (the regular format could already be empty) but explicitly having it be null unless it is set to something. This means that :x; generates a format of x and a firstFormat of "" and then the application code checks to see if it is null, rather than falsy
  3. Removes the ! format, which no longer does anything anyway