Skip to content
This repository was archived by the owner on Oct 9, 2023. It is now read-only.

Commit 00da049

Browse files
committed
🐛 fix channel name
1 parent b7b9206 commit 00da049

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bot.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ WebhookEvent.on('post', async (post: Message) => {
2323

2424
if (!matches) return;
2525

26-
matches[0] = matches[0].replace(`${process.env.GITLAB_ORG_NAME} / `, '');
26+
matches[0] = matches[0].replace(new RegExp(`${process.env.GITLAB_ORG_NAME} /(?: .*? \\/)* `), '');
2727

2828
const channel = (await client.channels.fetch(
2929
process.env.CHANNEL_ID

0 commit comments

Comments
 (0)