Fix linting error

This commit is contained in:
Alessio 2021-09-27 13:52:51 -07:00
parent b17e0821bb
commit f278010201

View File

@ -73,7 +73,7 @@ func die(text string, display_help bool, exit_code int) {
func extract_id_from(url string) (scraper.TweetID, error) { func extract_id_from(url string) (scraper.TweetID, error) {
var id_str string var id_str string
if regexp.MustCompile("^\\d+$").MatchString(url) { if regexp.MustCompile(`^\d+$`).MatchString(url) {
id_str = url id_str = url
} else { } else {
parts := strings.Split(url, "/") parts := strings.Split(url, "/")