Update default bold filter to disallow impersonation
This commit is contained in:
parent
a8d8f346d4
commit
5f41217595
|
@ -57,7 +57,7 @@ var Channel = function(name) {
|
||||||
};
|
};
|
||||||
this.filters = [
|
this.filters = [
|
||||||
new Filter("monospace", "`([^`]+)`", "g", "<code>$1</code>"),
|
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("italic", "(^| )_([^_]+)_", "g", "$1<em>$2</em>"),
|
||||||
new Filter("inline spoiler", "\\[spoiler\\](.*)\\[\\/spoiler\\]", "ig", "<span class=\"spoiler\">$1</span>")
|
new Filter("inline spoiler", "\\[spoiler\\](.*)\\[\\/spoiler\\]", "ig", "<span class=\"spoiler\">$1</span>")
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in a new issue