From 71f9ab79eae39e06ae15bc610b1dda4029ec3c05 Mon Sep 17 00:00:00 2001 From: calzoneman Date: Mon, 14 Apr 2014 19:13:54 -0500 Subject: [PATCH] Resolve #349 --- lib/channel.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;