Fix linting error
This commit is contained in:
parent
b17e0821bb
commit
f278010201
@ -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, "/")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user