VitorLuizC / brazilian-values

🇧🇷 Funções de formatação, conversão e validação para valores, documentos e outras unidades usadas no Brasil. Como CEP, CNPJ, CPF, BRL (R$), datas, números etc.
MIT License
537 stars 38 forks source link

Include a new format of cep #26

Closed matvaleriano closed 4 years ago

matvaleriano commented 4 years ago

In isCep function when I verify with this format ##.###-### it will return me a false, but if I use the same value without the mask it will be ok. So could you use at the cep pattern an optional '.' and '-'

VitorLuizC commented 4 years ago

Right now isCEP accepts 8 digits or 99999-999 format as valid.

I'll add ##.###-### as valid format too.

VitorLuizC commented 4 years ago

Fixed and published on 0.7.2.