diff --git a/src/utils/changelog.js b/src/utils/changelog.js index f8ba2cc..a762768 100644 --- a/src/utils/changelog.js +++ b/src/utils/changelog.js @@ -25,6 +25,9 @@ const config = [ "Remove '13 or under' option in the survey.", "Redesigned user information pop-out which now shows the badges for developer, creator and more." ], + fix: [ + "Issues fixed where custom emojis with single character did not work." + ] }, { version: 5.6, diff --git a/src/utils/markdown-it-plugins/customEmoji.js b/src/utils/markdown-it-plugins/customEmoji.js index 0142749..3c8aa6e 100644 --- a/src/utils/markdown-it-plugins/customEmoji.js +++ b/src/utils/markdown-it-plugins/customEmoji.js @@ -69,7 +69,7 @@ function replace_custom_emoji(state, silent) { // console.log(nameEnd, parseUntil(state,nameStart,58)) // parser failed to find another ':', so it's not a valid emoji - if(nameEnd > max || nameEnd < 0 || nameEnd - nameStart <= 1) { return false; } + if(nameEnd > max || nameEnd < 0 || nameEnd - nameStart <= 0) { return false; } let emojiName = state.src.slice(nameStart, nameEnd)