Skip to content

Commit

Permalink
Merge pull request #92 from snyk-tech-services/fix/make-compare-email…
Browse files Browse the repository at this point in the history
…-case-insensitive

fix: compare contrib emails without case sensitivity
  • Loading branch information
aarlaud authored May 10, 2024
2 parents 35d6354 + 19d44ff commit 5442e86
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/lib/consolidateResults/consolidate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,15 @@ export const consolidateResults = async (
if (
consolidatedContriburosList.find(
(item) =>
item.contributor.email == isContributorInArray.contributor.email,
item.contributor.email.toLowerCase() ==
isContributorInArray.contributor.email.toLowerCase(),
)
) {
consolidatedContriburosList[
consolidatedContriburosList.findIndex(
(item) =>
item.contributor.email ==
isContributorInArray.contributor.email,
item.contributor.email.toLowerCase() ==
isContributorInArray.contributor.email.toLowerCase(),
)
] = isContributorInArray;
} else {
Expand Down

0 comments on commit 5442e86

Please sign in to comment.