Fix edge case of emotes directly succeeding one another in a message
This commit is contained in:
parent
de145d00c7
commit
43be6402a0
2 changed files with 2 additions and 2 deletions
|
|
@ -2558,7 +2558,7 @@ Channel.prototype.validateEmote = function (f) {
|
|||
|
||||
var s = f.name.replace(/\\\.\?\+\*\$\^\(\)\[\]\{\}/g, "\\$1");
|
||||
s = s.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">");
|
||||
s = "(^|\\s)" + s + "($|\\s)";
|
||||
s = "(^|\\s)" + s + "(?!\\S)";
|
||||
f.source = s;
|
||||
|
||||
try {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue