sforkowany z mirror/soapbox
Merge branch 'implicit-mentions-fix' into 'develop'
Mentions regex should be case-insensitive See merge request soapbox-pub/soapbox-fe!997profile-avatar-switcher
commit
5c862645eb
|
@ -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)));
|
||||
|
|
Ładowanie…
Reference in New Issue