UNPKG

@azapfy/utils_validations-br

Version:

A validator to BR informations - Fork from validations-br

8 lines (7 loc) 286 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.validateCep = void 0; exports.validateCep = (function () { var regex = /^([\d]{8}|[\d]{5}-[\d]{3})$/; return function (cep) { return typeof cep === 'string' && regex.test(cep); }; })();