Skip to content

Commit 0f6ea41

Browse files
committed
docs: update ptBrCheck comment to reflect CPF formatting removal
1 parent 03500c0 commit 0f6ea41

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

src/lib/isTaxID.js

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -907,12 +907,14 @@ function plPlCheck(tin) {
907907
}
908908

909909
/*
910-
* pt-BR validation function
911-
* (Cadastro de Pessoas Físicas (CPF, persons)
912-
* Cadastro Nacional de Pessoas Jurídicas (CNPJ, entities)
913-
* Both inputs will be validated.
914-
* CNPJ supports both numeric (legacy) and alphanumeric format (starting July 2026).
915-
*/
910+
* pt-BR validation function
911+
* (Cadastro de Pessoas Físicas (CPF, persons)
912+
* Cadastro Nacional de Pessoas Jurídicas (CNPJ, entities)
913+
* Both inputs will be validated.
914+
* CPF accepts formatted (XXX.XXX.XXX-XX) and unformatted input;
915+
* formatting is stripped before validation.
916+
* CNPJ supports both numeric (legacy) and alphanumeric format (starting July 2026).
917+
*/
916918

917919
/**
918920
* Convert a CNPJ character to its numeric value for check digit calculation.

0 commit comments

Comments
 (0)