Skip to content

Commit

Permalink
fix: improve regex
Browse files Browse the repository at this point in the history
  • Loading branch information
Srayash authored Nov 8, 2024
1 parent f5c0b72 commit 566e108
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scraper/src/github-scraper/parseEvents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,11 @@ async function addCollaborations(event: PullRequestEvent, eventTime: Date) {

collaborators.add(authorLogin);

const coAuthors = commit.commit.message.match(
/Co-authored-by: (.+) <(.+)>/,
const coAuthors = commit.commit.message.matchAll(
/Co-authored-by: (.+) <(.+)>/g,
);
if (coAuthors) {
for (const [name, email] of coAuthors) {
for (const [, name, email] of coAuthors) {
if (isBlacklisted(name)) {
continue;
}
Expand Down

0 comments on commit 566e108

Please sign in to comment.