Skip to content

Commit

Permalink
Merge pull request #84 from ddanielsantos/fix/ie-pa
Browse files Browse the repository at this point in the history
feat: adicionar validacao de IEs do Para com prefixo 75
  • Loading branch information
mariohmol authored Nov 1, 2024
2 parents c478ad7 + 2b29e8c commit dd2fd42
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/inscricaoestadual.ts
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ export const generateInscricaoEstadual: BigObject<Function> = {
return false;
}

if (naoComecaCom(valor, '15')) {
if (naoComecaCom(valor, '15') && naoComecaCom(valor, '75')) {
return false;
}

Expand Down
1 change: 1 addition & 0 deletions test/validate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,7 @@ describe('Validate test', () => {
expect(validateBr.inscricaoestadual('150462360', 'pa')).to.be.true;
expect(validateBr.inscricaoestadual('15-150482-2', 'pa')).to.be.true;
expect(validateBr.inscricaoestadual('15-150482-0', 'pa')).to.be.false;
expect(validateBr.inscricaoestadual('75-000001-5', 'pa')).to.be.true;
});
it('Paraíba', () => {
expect(validateBr.inscricaoestadual('719171326', 'pb')).to.be.true;
Expand Down

0 comments on commit dd2fd42

Please sign in to comment.