From cf4ae370876074733c4bea4a2e6c4c350a4e93df Mon Sep 17 00:00:00 2001 From: keyan Date: Fri, 21 Jan 2022 12:37:36 -0600 Subject: [PATCH] make twitter regex work with query params --- components/item-full.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/item-full.js b/components/item-full.js index 7c5d3e31..2282603a 100644 --- a/components/item-full.js +++ b/components/item-full.js @@ -34,7 +34,7 @@ function BioItem ({ item, handleClick }) { function ItemEmbed ({ item }) { const darkMode = useDarkMode() - const twitter = item.url?.match(/^https?:\/\/twitter\.com\/(?:#!\/)?\w+\/status(?:es)?\/(?\d+)$/) + const twitter = item.url?.match(/^https?:\/\/twitter\.com\/(?:#!\/)?\w+\/status(?:es)?\/(?\d+)/) if (twitter?.groups?.id) { return }