Skip to content

Commit

Permalink
Merge pull request #119 from xpadev-net/fix/typedoc-error
Browse files Browse the repository at this point in the history
[修正] typedocのビルドに失敗するエラーを修正
  • Loading branch information
xpadev-net authored Nov 22, 2024
2 parents 26d3a0f + ac27199 commit 868d483
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/utils/commentArt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,13 @@ const getUsersScore = (
comment.mail.includes("ender") ||
comment.mail.includes("full")
) {
userScoreList[comment.user_id] += 5;
userScoreList[comment.user_id] =
(userScoreList[comment.user_id] ?? 0) + 5;
}
const lineCount = (comment.content.match(/\r\n|\n|\r/g) ?? []).length;
if (lineCount > 2) {
userScoreList[comment.user_id] += lineCount / 2;
userScoreList[comment.user_id] =
(userScoreList[comment.user_id] ?? 0) + lineCount / 2;
}
}
return userScoreList;
Expand Down

0 comments on commit 868d483

Please sign in to comment.