koblas / stdnum-js

A JavaScript library to provide functions to handle, parse and validate standard numbers.
MIT License
38 stars 26 forks source link

Fix NIF validation for Portugal. #120

Closed strotgen closed 1 month ago

strotgen commented 1 month ago

Some valid NIF PT numbers are being marked as invalid by the library. A client reported this bug, so I added a few tests for this specific issue.

You can find more info at https://www.nif.pt/.

AlexChesser commented 1 month ago

By link to the reference I mean in a code comment :)

koblas commented 1 month ago

@strotgen thanks for finding and fixing the issue.