Modifiers
Rules that modify data. They never return errors: values they cannot handle (empty values, objects and lists) are passed through unchanged. Modifiers were called "filter rules" before v2.0.
trimRemoves leading and trailing whitespace.'trim'no errorsto_lcConverts the string to lower case.'to_lc'no errorsto_ucConverts the string to upper case.'to_uc'no errorsremoveRemoves the given characters from the string.{ remove: '-() ' }no errorsleave_onlyRemoves all characters except the given ones.{ leave_only: '0123456789' }no errorsdefaultSets the value if it is empty: missing, null or an empty string. Other values, including 0, are kept.{ default: 18 }no errors