浏览代码

[SCEditor] Fixed the regexp that excape emoticons codes to include backslashes

Signed-off-by: emanuele <emanuele45@gmail.com>
emanuele 13 年之前
父节点
当前提交
dc11013404
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Themes/default/scripts/jquery.sceditor.js

+ 1 - 1
Themes/default/scripts/jquery.sceditor.js

@@ -1095,7 +1095,7 @@
 	 * @return string
 	 */
 	$.sceditor.regexEscape = function (str) {
-		return str.replace(/[\$\?\[\]\.\*\(\)\|]/g, "\\$&")
+		return str.replace(/[\$\?\[\]\.\*\(\)\|\\]/g, "\\$&")
 			.replace("<", "&lt;")
 			.replace(">", "&gt;");
 	};