diff --git a/src/util.js b/src/util.js index b9d41710..8f182dff 100644 --- a/src/util.js +++ b/src/util.js @@ -161,6 +161,6 @@ export const merge = Object.assign || function (to) { export function emojify (text) { return text .replace(/<(pre|template)[^>]*?>([\s\S]+)<\/(pre|template)>/g, match => match.replace(/:/g, '__colon__')) - .replace(/:(\w*?):/ig, '$1') + .replace(/:(\w+?):/ig, '$1') .replace(/__colon__/g, ':') }