Skip to content

Commit 4eed418

Browse files
author
Manuel
committed
fix: only replace status url instead of all
1 parent 7df75de commit 4eed418

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/handlers/handle-guild-message-creation.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import { MessageType } from 'discord.js';
33

44
const urlMappings = [
55
{
6-
pattern: /https?:\/\/(mobile\.)?twitter\.com\/(\S+)/g,
7-
replacement: 'https://vxtwitter.com/$2',
6+
pattern: /https?:\/\/(mobile\.)?twitter\.com\/(\S+)\/status\/(\d+)/g,
7+
replacement: 'https://vxtwitter.com/$3',
88
},
99
];
1010

0 commit comments

Comments
 (0)