mirror of
https://github.com/danbulant/Nertivia-Client
synced 2026-06-17 13:31:11 +00:00
fixed single character custom emoji
This commit is contained in:
parent
124e9a7f22
commit
1d2a22a40c
2 changed files with 4 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue