Implement the new ro.onrc identifier#465
Conversation
|
Hi @dotbit1, Could you include the numbers you tested with? |
|
Hi Arthur, Below a few examples: |
|
Hi @dotbit1, Sorry for taking so long to pick this up. From my understanding the new format will be used alongside the old format. The old numbers will remain valid and old numbers will be replaced by new ones gradually. This means that old numbers will need to remain to be accepted as valid for the foreseeable future (and the existing tests shouldn't fail). Thanks for providing the source of more numbers. I've simplified the code a bit, extended the test suite and merged it as cd94bf1. I sadly didn't find any numbers in the new format for individuals (F numbers). |
Closes #464;
Tested with multiple new format codes.
Used https://targetare.ro/blog/schimbari-importante-la-registrul-comertului-ce-trebuie-sa-stii-despre-noul-format-al-numarului-de-ordine as a source of info.
The part about using the J, F, C ASCII values is wrong, it should be the number of the letter, etc J = 10, etc.