Simple polish REGON validator
Validator check polish REGON number contains 9 or 14 digits.
Instalation
npm install validate-polish-regon
Simple using
For use validator you have to import 'validate-polish-regon' and call function with one argument - regon as number or string. REGON can contains spaces and dashes.
Validator always returns boolean value TRUE or FALSE.
Example:
const validate = ; ; //true, regon contains of 9 digits; //true, regon contains of 14 digits; //true, allowed white chars and dashes ; //false, invalid control digit; //false, too more digits; //false, not enough digits