Skip to content

fix: compute ISIN checksum instead of always accepting#474

Open
santhreal wants to merge 2 commits into
python-validators:masterfrom
santhreal:fix/isin-checksum
Open

fix: compute ISIN checksum instead of always accepting#474
santhreal wants to merge 2 commits into
python-validators:masterfrom
santhreal:fix/isin-checksum

Conversation

@santhreal

@santhreal santhreal commented Jul 18, 2026

Copy link
Copy Markdown

validators.finance.isin hits false-accept when isin checksum never accumulates; any 12-char alnum ISIN-shaped string returns True. This PR fixes the regression with a focused test covering the case.

_isin_checksum never accumulated into check, so any 12-character
ISIN-shaped string validated as True. Expand letters and apply Luhn.
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.

1 participant