-
Notifications
You must be signed in to change notification settings - Fork 575
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
API Key recognizer #1339
base: main
Are you sure you want to change the base?
API Key recognizer #1339
Conversation
@microsoft-github-policy-service agree |
Thanks, great addition! Can you please add a few unit tests? |
Added a few, let me know if they should be more comprehensive, thanks! |
presidio-analyzer/presidio_analyzer/predefined_recognizers/api_token_recognizer.py
Show resolved
Hide resolved
return super().analyze(text) | ||
|
||
|
||
class TestAPIKeyRecognizer(unittest.TestCase): |
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.
Please move the test to a new file under /tests. See many examples of other recognizers. Thanks!
Change Description
Added API token Recognizer
Issue reference
This PR fixes issue #XX
Checklist