Update default bold filter to disallow impersonation

This commit is contained in:
calzoneman 2013-05-16 00:01:07 -04:00
parent a8d8f346d4
commit 5f41217595

View file

@ -57,7 +57,7 @@ var Channel = function(name) {
};
this.filters = [
new Filter("monospace", "`([^`]+)`", "g", "<code>$1</code>"),
new Filter("bold", "\\*([^\\*]+)\\*", "g", "<strong>$1</strong>"),
new Filter("bold", "(.)\\*([^\\*]+)\\*", "g", "$1<strong>$2</strong>"),
new Filter("italic", "(^| )_([^_]+)_", "g", "$1<em>$2</em>"),
new Filter("inline spoiler", "\\[spoiler\\](.*)\\[\\/spoiler\\]", "ig", "<span class=\"spoiler\">$1</span>")
];