Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move sanitize_value to be common, Fix InPassportRecognizer #1519

Merged

Conversation

SharonHart
Copy link
Contributor

@SharonHart SharonHart commented Jan 26, 2025

Fix Indian Passport Number regex

Fixing InPassportRecognizer where tests were not asserting correctly.
Make sanitize_value a common utility method under validation module.

Issue reference

This PR fixes #1516

Checklist

  • I have reviewed the contribution guidelines
  • I have signed the CLA (if required)
  • My code includes unit tests
  • All unit tests and lint checks pass locally
  • My PR contains documentation updates / additions if required

@SharonHart
Copy link
Contributor Author

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@SharonHart
Copy link
Contributor Author

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@SharonHart
Copy link
Contributor Author

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@SharonHart
Copy link
Contributor Author

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@SharonHart
Copy link
Contributor Author

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@SharonHart
Copy link
Contributor Author

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@SharonHart SharonHart merged commit 35ab8ae into main Jan 26, 2025
32 checks passed
@SharonHart SharonHart deleted the shhart/bug/common_sanitize_and_correct_indian_passport branch January 26, 2025 17:26
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.

Indian passports are 8 chars not 9. This regex is not correct.
2 participants