Skip to content

Commit 235a2ba

Browse files
committed
fix(emoji): don't remove single colons
1 parent 613d5e2 commit 235a2ba

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

scripts/remove-emojis.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ local function cleanup(elem)
2929
if elem.text ~= nil then
3030
elem.text = demojify(elem.text)
3131
if #elem.text ~= 0 then
32-
if elem.text:starts_with(":") and elem.text:ends_with(":") then
32+
-- remove github emoji
33+
if elem.text:starts_with(":") and elem.text:ends_with(":") and #elem.text > 2 then
3334
prevEmoji = true
3435
return {}
3536
else

0 commit comments

Comments
 (0)