node-canvas-with-twemoji-and-discord-emoji
Advanced tools
Comparing version 1.1.0 to 1.1.1
{ | ||
"name": "node-canvas-with-twemoji-and-discord-emoji", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "A fork of node-canvas-with-twemoji with Discord emoji support.", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -17,3 +17,3 @@ const { parse } = require('twemoji-parser'); | ||
if (typeof entity === "string") { | ||
const words = entity.replace(/<?(a:|:)\w*:(\d{17}|\d{18})>/, "\u200b$&\u200b").split("\u200b"); | ||
const words = entity.replace(/<?(a:|:)\w*:(\d{17}|\d{18})>/g, "\u200b$&\u200b").split("\u200b"); | ||
@@ -20,0 +20,0 @@ words.map(word => matchDiscordEmojis(word) |
23786