oops my bad

This commit is contained in:
Jeff Atwood 2013-04-26 15:26:59 -07:00
parent 01e0226086
commit 2e2160f964
1 changed files with 1 additions and 1 deletions

View File

@ -143,7 +143,7 @@ Discourse.Markdown = {
if (!text) return "";
// don't do @username mentions inside <pre> or <code> blocks
text = text.replace(/<(pre|code>([\s\S]*?@[\s\S]*?)<\/(pre|code)>)/gi, function(wholeMatch, m1, m2, m3) {
text = text.replace(/<(pre|code)>([\s\S]*?@[\s\S]*?)<\/(pre|code)>)/gi, function(wholeMatch, m1, m2, m3) {
return "<" + m1 + ">" + (m2.replace(/@/g, '&#64;')) + "</" + m3 + ">";
});