From c4f1db7098cb58f7e62c42ec78e63add4f84eafd Mon Sep 17 00:00:00 2001 From: Everett Southwick Date: Sat, 26 Aug 2023 13:00:30 -0400 Subject: [PATCH] feat: add support for x --- src/constants/platforms.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/constants/platforms.js b/src/constants/platforms.js index e27f8e9..30a7141 100644 --- a/src/constants/platforms.js +++ b/src/constants/platforms.js @@ -16,8 +16,8 @@ const platforms = [ }, { name: 'Twitter', - pattern: /(https?:\/\/([a-zA-Z0-9-]+\.)?twitter\.[^?]+)/g, - replacement: (url) => url.replace('twitter.', 'vxtwitter.'), + pattern: /(https?:\/\/(?:x\.)?twitter\.[^?]+)/g, + replacement: (url) => url.replace(/(x\.)?twitter\./, 'vxtwitter.'), }, { name: 'Bluesky',