Skip to content

Conversation

Serp-ent
Copy link
Contributor

@Serp-ent Serp-ent commented Jul 3, 2025

  • Fix regon length regex
  • Fix regon validation for 14 digits

Fixed validation, because regex currently allows for strings from 9 to 14 digits, but only fixed 9 digits or 14 digits should be allowed. Additionally the checksum validation for last digit case (where modulo of checksum is equal 10) is handled incorrectly for 14 digits length string.

Kacper Urbański added 2 commits July 3, 2025 14:07
- Fix regon length regex
- Fix regon validation for 14 digits
@Serp-ent Serp-ent marked this pull request as ready for review July 3, 2025 12:23
- Allow formatted IBANs longer than 26 chars to be saved in `IBANField`
(`gh-522 <https://github.com/django/django-localflavor/pull/522>`_).
- Fix REGON validation for PL
(`gh-529 <https://github.com/django/django-localflavor/pull/529>`_).
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

5.0 has been released, please add your note under the 5.1 section.

Copy link
Contributor Author

@Serp-ent Serp-ent Jul 5, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry about that, fixed.

Copy link
Member

@claudep claudep left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, looks good!

@benkonrath, do you want to have a quick look before merging?

@benkonrath benkonrath self-requested a review July 11, 2025 21:34
Copy link
Member

@benkonrath benkonrath left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Thanks!

@benkonrath benkonrath merged commit d361126 into django:master Jul 11, 2025
7 checks passed
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.

3 participants