cbrgm/go-t

Invalid regex for checking twitter handles

raylee opened this issue · 1 comments

Twitter handles can start with a digit (I'm @4raylee), so the following regex should be adjusted:

return regexp.MustCompile("^[a-zA-Z][a-zA-Z0-9-_]+$").MatchString(alias)

Thanks for the nifty tool, I'm looking forward to trying it out!

cbrgm commented

Fixed and merged into master.
Thanks for your kind feedback and opening up the issue!

Cheers