diff --git a/lib/template.ejs b/lib/template.ejs index b9f20d8..815e91d 100644 --- a/lib/template.ejs +++ b/lib/template.ejs @@ -72,8 +72,14 @@ <% } %> + <% let regexp = /s*(?<=:).+?(?=:)s*/; let postWithEmoji = item.content; + item.content = postWithEmoji.replace(regexp, "") console.log(item.content); %>