🇻🇪 La cédula venezolana no está en Soulprint. ¿La agregas?
const VE: CountryVerifier = {
countryCode: "VE", countryName: "Venezuela", documentTypes: ["cedula"],
parse(ocrText: string): DocumentResult {
const ced = ocrText.match(/([VE]-?\d{7,8})/)?.[1] ?? "";
return { valid: !!ced, doc_number: ced.replace("-",""), country: "VE" };
},
validate(docNumber: string): NumberValidation {
return { valid: /^[VE]\d{7,8}$/.test(docNumber) };
},
};
export default VE;
💻 github.com/manuelariasfz/soulprint · Un PR. Un paÃs.
Top comments (0)