diff --git a/lib/channel.js b/lib/channel.js index a4035913..a11110c4 100644 --- a/lib/channel.js +++ b/lib/channel.js @@ -2558,7 +2558,7 @@ Channel.prototype.validateEmote = function (f) { f.image = f.image.substring(0, 1000); f.image = XSS.sanitizeText(f.image); - var s = XSS.sanitizeText(f.name).replace(/([\\\.\?\+\*\$\^\(\)\[\]\{\}])/g, "\\$1"); + var s = XSS.sanitizeText(f.name).replace(/([\\\.\?\+\*\$\^\|\(\)\[\]\{\}])/g, "\\$1"); s = "(^|\\s)" + s + "(?!\\S)"; f.source = s;