mirror of
https://github.com/thedevs-network/the-guard-bot
synced 2025-08-30 05:37:59 +00:00
[Bugfix] match only full group name in groupLinker
This commit is contained in:
parent
50f5961e89
commit
47639b42a2
@ -14,7 +14,7 @@ const handler = async (ctx, next) => {
|
|||||||
groupName = ctx.chat.title;
|
groupName = ctx.chat.title;
|
||||||
}
|
}
|
||||||
|
|
||||||
const $regex = XRegExp.tag('i')`${groupName}`;
|
const $regex = XRegExp.tag('i')`^${groupName}$`;
|
||||||
|
|
||||||
const group = await managesGroup({ title: { $regex } });
|
const group = await managesGroup({ title: { $regex } });
|
||||||
const { link } = group || {};
|
const { link } = group || {};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user