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, "/")