From d30971fd213007a918987234901e3e88fbc61cdb Mon Sep 17 00:00:00 2001 From: XangelMusic <22012301+XangelMusic@users.noreply.github.com> Date: Wed, 29 May 2024 00:29:30 +0800 Subject: [PATCH] Update matcher.go --- artworks/twitter/matcher.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/artworks/twitter/matcher.go b/artworks/twitter/matcher.go index 7d67c5a..90b3c91 100644 --- a/artworks/twitter/matcher.go +++ b/artworks/twitter/matcher.go @@ -17,7 +17,7 @@ func (twitterMatcher) Match(s string) (string, bool) { return "", false } - if ok, _ := regexp.MatchString("^(?:mobile\.)?(?:(?:fix(?:up|v))?x|(?:[fv]x)?twitter)\\.com$", u.Host); !ok { + if ok, _ := regexp.MatchString("^(?:mobile\\.)?(?:(?:fix(?:up|v))?x|(?:[fv]x)?twitter)\\.com$", u.Host); !ok { return "", false }