We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The JiraToken v1 detector detector has a defect that prevents it from working in many cases.
If the email match contains any whitespace (e.g., email = [email protected]), the strings.Split can silently fail len != 2 (#2746)
email = [email protected]
strings.Split
len != 2
trufflehog/pkg/detectors/jiratoken/v1/jiratoken.go
Lines 56 to 59 in def734a
It seems to have been broken over a year ago by #1288 without anyone noticing, even after unit tests were supposedly added in #3614.
See also: #2746 (comment), #3773, #3817
The text was updated successfully, but these errors were encountered:
I believe a simple solution is that we can use our email regex pattern from common here. Somehow this detector was missed in the pull request
Sorry, something went wrong.
kashifkhan0771
Successfully merging a pull request may close this issue.
The JiraToken v1 detector detector has a defect that prevents it from working in many cases.
If the email match contains any whitespace (e.g.,
email = [email protected]
), thestrings.Split
can silently faillen != 2
(#2746)trufflehog/pkg/detectors/jiratoken/v1/jiratoken.go
Lines 56 to 59 in def734a
Related
It seems to have been broken over a year ago by #1288 without anyone noticing, even after unit tests were supposedly added in #3614.
See also: #2746 (comment), #3773, #3817
The text was updated successfully, but these errors were encountered: