-
Notifications
You must be signed in to change notification settings - Fork 603
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
New Predefined Recognizer: IN_PAN #1100
Conversation
Added India PAN (Permanent Account Number) recognizer
refined the regex for better recognition and enhanced the test cases accordingly
@microsoft-github-policy-service agree [company="{BlackhawkNetwork}"] |
@microsoft-github-policy-service agree company="Blackhawk Network" |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
@devopam please run |
Fixed lint error that was missed earlier.
that was a bad miss. fixed and ran lint - no errors reported on local. Also, black recommended no changes |
Added test cases , verification and context data
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
Added negative test cases per review comments.
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! LGTM
presidio-analyzer/presidio_analyzer/predefined_recognizers/in_pan_recognizer.py
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the contribution
see my comment about adding the check-sum functionality to make the recognizer even more robust.
Also add the new entity to the documentation
@devopam would you be interested in adding the checksum logic in a new PR? |
/azp run |
No commit pushedDate could be found for PR 1100 in repo microsoft/presidio |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
Mergine this one, the checksum capability would be added in a future PR. |
Change Description
Added presidio predefined recognizer : IN_PAN
Describe your changes
Added pattern and context based recognizer InPanRecognizer to predefined recognizers.
This recognizer is for India Permanent Account Number (PAN) which is the primary unique taxpayer identifier for all citizens.
Issue reference
This PR fixes issue #XX
Checklist