/** * FormValidation (https://formvalidation.io) * The best validation library for JavaScript * (c) 2013 - 2020 Nguyen Huu Phuoc */ import mod11And10 from '../../algorithms/mod11And10'; /** * Validate Croatian personal identification number (OIB) * * @returns {ValidateResult} */ export default function hrId(value: string) { return { meta: {}, valid: (/^[0-9]{11}$/.test(value) && mod11And10(value)), }; }