From 6e97e051814f6dc87530357ae933b450cf662b80 Mon Sep 17 00:00:00 2001 From: youniaogu Date: Tue, 31 May 2022 16:06:21 +0800 Subject: [PATCH] fix PATTERN_TWITTER --- background.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/background.js b/background.js index c02ac0d..7ec1d6f 100644 --- a/background.js +++ b/background.js @@ -5,7 +5,7 @@ const PATTERN_STEAM = /^https:\/\/store\.steampowered\.com\/app\//; const PATTERN_JUEJIN = /^https:\/\/juejin\.cn\/post\//; const PATTERN_CSDN_1 = /^https:\/\/blog\.csdn\.net\/\w+\/article\/details\/\d+/; const PATTERN_CSDN_2 = /^https:\/\/\w+\.blog\.csdn\.net\/article\/details\/\d+/; -const PATTERN_TWITTER = /^https:\/\/twitter\.com\/.+\/status\/.+/; +const PATTERN_TWITTER = /^https:\/\/twitter\.com\/.+/; const PATTERN_GITHUB_REPOS = /^https:\/\/github\.com\/[a-z0-9A-Z\.\_\-]+\/[a-z0-9A-Z\.\_\-]+(?=[^\/]*$)/; const href = window.location.href;