respect-validation/docs/rules/Roman.md
Henrique Moody 22f3f80f4c
Make some improvements to the "Roman" rule
The rule validates any empty string as a valid input, its exception
message states Roman with lower-case "R" and refers to numbers instead
of numerals, which is the most common usage.

This commit will fix both behaviors and also improve the tests for the
rule.

Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
2019-04-05 20:15:46 +02:00

418 B

Roman

  • Roman()

Validates if the input is a Roman numeral.

v::roman()->validate('IV'); // true

Changelog

Version Description
2.0.0 Exception message refers to Roman "numerals" instead of "numbers"
2.0.0 Do not consider empty strings as valid
0.3.9 Created

See also: