fnando / cpf_cnpj

🇧🇷 Validate, generate and format CPF/CNPJ numbers. Include command-line tools.
MIT License
238 stars 42 forks source link

CPF must return false if parameter of "valid?" method contains letters #7

Closed pedrofurtado closed 6 years ago

pedrofurtado commented 6 years ago

@fnando

CPF.valid? 'Luisa Maria', strict: true
#=> true

This code above returns "true", but the correct return value is "false". This because any CPF with letters is not a valid CPF.