Merge branch 'implicit-mentions-fix' into 'develop'
Mentions regex should be case-insensitive See merge request soapbox-pub/soapbox-fe!997
This commit is contained in:
commit
5c862645eb
1 changed files with 1 additions and 1 deletions
|
@ -212,7 +212,7 @@ export function submitCompose(routerHistory, force = false) {
|
|||
}
|
||||
|
||||
if (to && status) {
|
||||
const mentions = status.match(/(?:^|\s|\.)@([a-z0-9_]+(?:@[a-z0-9\.\-]+)?)/g); // not a perfect regex
|
||||
const mentions = status.match(/(?:^|\s|\.)@([a-z0-9_]+(?:@[a-z0-9\.\-]+)?)/gi); // not a perfect regex
|
||||
|
||||
if (mentions)
|
||||
to = to.union(mentions.map(mention => mention.trim().slice(1)));
|
||||
|
|
Loading…
Reference in a new issue