From 023d3c2fb20ea8f890dce7c639da35d22caa7f58 Mon Sep 17 00:00:00 2001 From: n4ze3m Date: Sun, 9 Feb 2025 12:41:48 +0530 Subject: [PATCH] fix: update Twitter profile regex to match new domain x.com --- src/parser/twitter.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parser/twitter.ts b/src/parser/twitter.ts index cfbbd3d..fb3b3fb 100644 --- a/src/parser/twitter.ts +++ b/src/parser/twitter.ts @@ -11,7 +11,7 @@ export const isTwitterTimeline = (url: string) => { } export const isTwitterProfile = (url: string) => { - const PROFILE_REGEX = /twitter\.com\/[a-zA-Z0-9_]+/g + const PROFILE_REGEX = /x\.com\/[a-zA-Z0-9_]+/g const X_REGEX = /x\.com\/[a-zA-Z0-9_]+/g return PROFILE_REGEX.test(url) || X_REGEX.test(url) }