Skip to content

Checksum rules LIVR 2.5 ​

Checksum rules check numbers with a check digit. The string form of the value is checked as it is: no spaces, dashes or lowercase letters are removed. Use modifiers before, for example [{ remove: ' -' }, 'to_uc', 'iban']. The output is the string form. A boolean gives the error code of the rule, and an object or a list gives FORMAT_ERROR.

These rules were added in LIVR 2.5.