This commit is contained in:
calzoneman 2014-04-14 19:13:54 -05:00
parent 48e808c8ea
commit 71f9ab79ea
1 changed files with 1 additions and 1 deletions

View File

@ -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;