Skip to content

fix: isISO31661Alpha2 currently allowing lowercase characters (#2629)#2679

Closed
cherites0610 wants to merge 1 commit intotypestack:developfrom
cherites0610:fix/2629-iso31661alpha2-lowercase
Closed

fix: isISO31661Alpha2 currently allowing lowercase characters (#2629)#2679
cherites0610 wants to merge 1 commit intotypestack:developfrom
cherites0610:fix/2629-iso31661alpha2-lowercase

Conversation

@cherites0610
Copy link
Copy Markdown

Description

Added a strict uppercase check in isISO31661Alpha2 before delegating to validator.js. This prevents lowercase characters from bypassing the validation. Also added a test case in IsISO31661Alpha2.spec.ts to ensure lowercase values are correctly rejected.

Checklist

  • the pull request title describes what this PR does (not a vague title like Update index.md)
  • the pull request targets the default branch of the repository (develop)
  • the code follows the established code style of the repository
    • npm run prettier:check passes
    • npm run lint:check passes
  • tests are added for the changes I made (if any source code was modified)
  • documentation added or updated
  • I have run the project locally and verified that there are no errors

Fixes

fixes #2629

@cherites0610 cherites0610 closed this by deleting the head repository May 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

fix: isISO31661Alpha2 currently allowing lowercase characters

1 participant