@vn-utils/phone-validate
Version:
A library to validate Vietnamese phone number
37 lines (36 loc) • 1.03 kB
TypeScript
export declare const PROVIDERS_REGEX: {
readonly Viettel: RegExp;
readonly Vinaphone: RegExp;
/**
* 089 is both of Mobifone and Local,
* So we not find 089 as Mobifone
* Move it to `Mobifone & Local` bottom.
*/
readonly Mobifone: RegExp;
readonly Vietnamobile: RegExp;
readonly Gmobile: RegExp;
};
export declare const VIRTUAL_PROVIDERS_REGEX: {
readonly Vnsky: RegExp;
readonly FPT: RegExp;
readonly Wintel: RegExp;
readonly Itel: RegExp;
readonly Mobifone_Local: RegExp;
};
export declare const ALL_PROVIDERS_REGEX: {
readonly Viettel: RegExp;
readonly Vinaphone: RegExp;
/**
* 089 is both of Mobifone and Local,
* So we not find 089 as Mobifone
* Move it to `Mobifone & Local` bottom.
*/
readonly Mobifone: RegExp;
readonly Vietnamobile: RegExp;
readonly Gmobile: RegExp;
readonly Vnsky: RegExp;
readonly FPT: RegExp;
readonly Wintel: RegExp;
readonly Itel: RegExp;
readonly Mobifone_Local: RegExp;
};