Fix mentions before blockquote (#15774)

pull/15780/head
Martin Schoeler 6 years ago committed by Guilherme Gazzo
parent a8ad42b34f
commit e2f1a3e85d
  1. 4
      app/mentions/lib/MentionsParser.js

@ -32,11 +32,11 @@ export class MentionsParser {
}
get userMentionRegex() {
return new RegExp(`(^|\\s|<p>|<br> ?)@(${ this.pattern }(@(${ this.pattern }))?)`, 'gm');
return new RegExp(`(^|\\s|> ?)@(${ this.pattern }(@(${ this.pattern }))?)`, 'gm');
}
get channelMentionRegex() {
return new RegExp(`(^|\\s|<p>)#(${ this.pattern }(@(${ this.pattern }))?)`, 'gm');
return new RegExp(`(^|\\s|>)#(${ this.pattern }(@(${ this.pattern }))?)`, 'gm');
}
replaceUsers = (msg, { mentions, temp }, me) => msg

Loading…
Cancel
Save