Skip to content
This repository has been archived by the owner on Oct 20, 2021. It is now read-only.

Latest commit

 

History

History
33 lines (28 loc) · 833 Bytes

roman.md

File metadata and controls

33 lines (28 loc) · 833 Bytes

Roman

Validates if the given input is roman.

Valid values:

validator.roman().validate('');
validator.roman().validate('III');
validator.roman().validate('IV');
validator.roman().validate('VI');
validator.roman().validate('XIX');
validator.roman().validate('XLII');
validator.roman().validate('LXII');
validator.roman().validate('CXLIX');
validator.roman().validate('CLIII');
validator.roman().validate('MCCXXXIV');
validator.roman().validate('MMXXIV');
validator.roman().validate('MCMLXXV');
validator.roman().validate('MMMMCMXCIX');

Invalid values:

validator.roman().validate(' ');
validator.roman().validate('IIII');
validator.roman().validate('IVVVX');
validator.roman().validate('CCDC');
validator.roman().validate('MXM');
validator.roman().validate('XIIIIIIII');
validator.roman().validate('MIMIMI');