diff --git a/bot_scripts/tip-kudos-recipients.js b/bot_scripts/tip-kudos-recipients.js index 8f82dae..12a3c06 100644 --- a/bot_scripts/tip-kudos-recipients.js +++ b/bot_scripts/tip-kudos-recipients.js @@ -293,10 +293,10 @@ function parseKudosReceivers (message) { function countStarReactions (message, kudosReceivers) { let reactionCount = 0 if (message.reactions) { - const starsRegex = /> \*(\d+) :star:s\s+\*/g + const starsRegex = /> \*(\d+) :star:s?\s*\*/g reactionCount = getReactionCount(starsRegex, message.text) if (reactionCount === 0) { - const reactionsRegex = /> \*`(\d+)` Reactions?\s+\*/g + const reactionsRegex = /> \*`(\d+)` Reactions?\s*\*/g reactionCount = getReactionCount(reactionsRegex, message.text) } }