mozambique-utils
Version:
Easy to use parsers and validators for mozambican (🇲🇿) data-type formatted strings.
11 lines (10 loc) • 484 B
TypeScript
import { CountryCodeOption } from "./type/types";
/**
* Get a customized mobile number regex pattern
*
* @param countryCode If the country code should by
* @param operators a string of operators to allow. Provide an empty array for all operators.
* @returns the customized regex that can be used to test a number.
*/
declare const get_mobile_number_pattern: (countryCodeOpt: CountryCodeOption, operators: string[]) => RegExp;
export default get_mobile_number_pattern;