Skip to content

Commit

Permalink
Escape the pattern like the message
Browse files Browse the repository at this point in the history
Signed-off-by: Joas Schilling <coding@schilljs.com>
  • Loading branch information
nickvergessen committed Oct 15, 2018
1 parent 96b8465 commit 52723f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/comments/js/commentstabview.js
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@
}
var mention = '@' + mentions[i].mentionId;
if (mentions[i].mentionId.indexOf(' ') !== -1) {
mention = '@"' + mentions[i].mentionId + '"';
mention = _.escape('@"' + mentions[i].mentionId + '"');
}

// escape possible regex characters in the name
Expand Down

0 comments on commit 52723f0

Please sign in to comment.