Skip to content
Snippets Groups Projects
Unverified Commit e4837a15 authored by Ayush Sharma's avatar Ayush Sharma Committed by GitHub
Browse files

fix: User Mentioning when prepending the username with > (#28875)

parent f83ea5d6
No related branches found
No related tags found
No related merge requests found
---
"@rocket.chat/meteor": patch
---
Fixed user mentioning when prepending the username with `>`
......@@ -38,7 +38,7 @@ export class MentionsParser {
}
get userMentionRegex() {
return new RegExp(`(^|\\s|> ?)@(${this.pattern}(@(${this.pattern}))?(:([0-9a-zA-Z-_.]+))?)`, 'gm');
return new RegExp(`(^|\\s|>)@(${this.pattern}(@(${this.pattern}))?(:([0-9a-zA-Z-_.]+))?)`, 'gm');
}
get channelMentionRegex() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment