Skip to content

Commit

Permalink
Make it case insensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
lowlighter authored Jun 30, 2021
1 parent 6983260 commit 5a15dfd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/plugins/lines/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default async function({login, data, imports, rest, q, account}, {enabled
if (!Array.isArray(repository))
return
//Compute editions
const contributors = repository.filter(({author}) => context.mode === "repository" ? true : author?.login === login)
const contributors = repository.filter(({author}) => context.mode === "repository" ? true : author?.login?.toLocaleLowerCase() === login.toLocaleLowerCase())
for (const contributor of contributors)
contributor.weeks.forEach(({a, d}) => (lines.added += a, lines.deleted += d))
})
Expand Down

0 comments on commit 5a15dfd

Please sign in to comment.