UNPKG

validate-kaike-js

Version:
22 lines (21 loc) 953 B
export const passportRegexList = [ { country: "AF", regex: /^[A-Z]{2}\d{7}$/ }, { country: "AO", regex: /^[A-Z]{2}\d{6}$/ }, { country: "AR", regex: /^[A-Z]\d{7}$/ }, { country: "AU", regex: /^[A-Z]\d{7}$/ }, { country: "BR", regex: /^[A-Z]{2}\d{6}$/ }, { country: "CA", regex: /^[A-Z]{2}\d{6}$/ }, { country: "CN", regex: /^G\d{8}$|^E\d{8}$/ }, { country: "DE", regex: /^[CFGHJKLMNPRTVWXYZ0-9]{9}$/ }, { country: "ES", regex: /^[A-Z]{3}\d{6}$/ }, { country: "FR", regex: /^[0-9]{2}[A-Z]{2}[0-9]{5}$/ }, { country: "GB", regex: /^\d{9}$/ }, { country: "IN", regex: /^[A-Z]{1}-\d{7}$/ }, { country: "IT", regex: /^[A-Z0-9]{9}$/ }, { country: "JP", regex: /^[A-Z]{2}\d{7}$/ }, { country: "MX", regex: /^\d{10}$/ }, { country: "PT", regex: /^[A-Z]\d{6}$/ }, { country: "RU", regex: /^\d{9}$/ }, { country: "US", regex: /^\d{9}$/ }, { country: "ZA", regex: /^[A-Z]{2}\d{6}$/ }, ];