Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CPF validation not working #7

Merged
merged 1 commit into from
Mar 1, 2024
Merged

CPF validation not working #7

merged 1 commit into from
Mar 1, 2024

Conversation

joaotonaco
Copy link
Contributor

A validação do CPF não estava funcionando e o motivo é que, utilizando o .concat([11]), o 11 estava indo para o final da array quando deveria ir para o começo. Substituindo essa variável pelos valores corretos passou a funcionar normalmente.

@abensur
Copy link
Owner

abensur commented Mar 1, 2024

Muito obrigado @joaotonaco
Eu devia ter feito [11, ...validation1.slice(0, 9)]
Mas vou ficar com a sua solução agora!

@abensur abensur merged commit b29f985 into abensur:main Mar 1, 2024
@abensur
Copy link
Owner

abensur commented Mar 1, 2024

@joaotonaco tbm precisei colocar outros testes, o meu CPF tava passando mesmo com o 11 no final

@joaotonaco joaotonaco deleted the patch-1 branch March 1, 2024 18:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants