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

Commit 2366e32

Browse files
committed
🐛 fix repos with / in name
1 parent 20cc37b commit 2366e32

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
@@ -28,7 +28,7 @@ WebhookEvent.on('post', async (post: Message) => {
2828
else if (post.embeds[0].description.match(/failed/)) post.embeds[0].color = 16711680;
2929
}
3030

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

3333
const channel = (await client.channels.fetch(
3434
process.env.CHANNEL_ID

0 commit comments

Comments
 (0)