Mentions regex should be case-insensitive
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
parent
c13b36fed3
commit
58ab54cd9e
|
@ -212,7 +212,7 @@ export function submitCompose(routerHistory, force = false) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (to && status) {
|
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)
|
if (mentions)
|
||||||
to = to.union(mentions.map(mention => mention.trim().slice(1)));
|
to = to.union(mentions.map(mention => mention.trim().slice(1)));
|
||||||
|
|
Loading…
Reference in New Issue