From f278010201f77af3ed4bc7f2bb5be47b8dfa37cc Mon Sep 17 00:00:00 2001 From: Alessio Date: Mon, 27 Sep 2021 13:52:51 -0700 Subject: [PATCH] Fix linting error --- cmd/twitter/helpers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/twitter/helpers.go b/cmd/twitter/helpers.go index 47c4873..d8f71d6 100644 --- a/cmd/twitter/helpers.go +++ b/cmd/twitter/helpers.go @@ -73,7 +73,7 @@ func die(text string, display_help bool, exit_code int) { func extract_id_from(url string) (scraper.TweetID, error) { var id_str string - if regexp.MustCompile("^\\d+$").MatchString(url) { + if regexp.MustCompile(`^\d+$`).MatchString(url) { id_str = url } else { parts := strings.Split(url, "/")