Skip to content

Don't return too long company ids. Fix for #1233 - #1237

Merged
fcurella merged 1 commit into
joke2k:masterfrom
kivipe:fix_companyid
Aug 10, 2020
Merged

Don't return too long company ids. Fix for #1233#1237
fcurella merged 1 commit into
joke2k:masterfrom
kivipe:fix_companyid

Conversation

@kivipe

@kivipe kivipe commented Aug 10, 2020

Copy link
Copy Markdown
Contributor

What does this changes

This is a bugfix for #1233 .

What was wrong

Finnish company id calculation did not handle invalid remainder 1 in checksum calculation, resulting two digit checksums.

How this fixes it

Company id is generated until a valid one is found

* Handle invalid checksum 1
* Add tests for checksum length
@fcurella

Copy link
Copy Markdown
Collaborator

Thank you! ✨

@fcurella
fcurella merged commit d171b43 into joke2k:master Aug 10, 2020
IlfirinPL pushed a commit to IlfirinPL/faker that referenced this pull request Apr 9, 2021
* Handle invalid checksum 1
* Add tests for checksum length
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants