Skip to content
This repository has been archived by the owner on Apr 12, 2023. It is now read-only.

Commit

Permalink
Fix extra colon in emoji with skin
Browse files Browse the repository at this point in the history
  • Loading branch information
zcbenz committed Jan 11, 2019
1 parent b76f74f commit af33aac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/service/slack/message-parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const rules = [
regex: /:([a-zA-Z0-9_\-\+]+):/g,
replacer(account, match, p1) {
const r = parseEmoji(account, 22, p1)
return r ? r : match[0]
return r !== null ? r : match[0]
}
},
{
Expand Down

0 comments on commit af33aac

Please sign in to comment.