Skip to content

Commit

Permalink
Update cpfValidator.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
gabriel-logan authored Jun 14, 2024
1 parent a41600f commit 4f6aca2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/typescript/src/cpfValidator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ function cpfIsValid(
}

const cpfClean: string = cpf.replace(/\D+/g, "");

if (/^(\d)\1{10}$/.test(cpfLimpo)) {
return {
isValid: false,
Expand Down

0 comments on commit 4f6aca2

Please sign in to comment.