From 4d5ea53a1be06a14b795c6df0b894c3c620d8718 Mon Sep 17 00:00:00 2001 From: Alex Hortopan Date: Fri, 17 May 2024 11:36:18 +0300 Subject: [PATCH] fix: twitter (support both x.com and twitter.com) urls --- src/services.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services.js b/src/services.js index d15fc02d..f4519806 100644 --- a/src/services.js +++ b/src/services.js @@ -136,7 +136,7 @@ export default { width: 400, }, twitter: { - regex: /^https?:\/\/(www\.)?twitter\.com\/.+\/status\/(\d+)/, + regex: /^https?:\/\/(www\.)?(twitter|x)\.com\/.+\/status\/(\d+)/, embedUrl: 'https://platform.twitter.com/embed/Tweet.html?id=<%= remote_id %>', html: '', height: 300,