From 5c4956032b30dfce2e026fa03b45c75b6d7cc7c7 Mon Sep 17 00:00:00 2001 From: dangered wolf Date: Sat, 13 Aug 2022 02:19:18 -0400 Subject: [PATCH] Fixed broken linkfixer --- src/linkFixer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/linkFixer.ts b/src/linkFixer.ts index 80b7925..17739b2 100644 --- a/src/linkFixer.ts +++ b/src/linkFixer.ts @@ -5,7 +5,7 @@ export const linkFixer = (tweet: TweetPartial, text: string): string => { text = text.replace(url.url, url.expanded_url); }); - text = text.replace(/ ?https:\/\/t\.co\/\w{10}/, ''); + text = text.replace(/ ?https:\/\/t\.co\/\w{10}/g, ''); } return text;