Archived
1
0

commit which fixes invalid line shit

This commit is contained in:
Jeff Becker 2018-01-04 15:46:49 -05:00
parent df021531cb
commit aadb4ae230
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

View File

@ -297,7 +297,7 @@ func decAddr(encaddr, key string) string {
var exp_valid_newsgroup = regexp.MustCompilePOSIX(`^[a-zA-Z0-9.]{1,128}$`) var exp_valid_newsgroup = regexp.MustCompilePOSIX(`^[a-zA-Z0-9.]{1,128}$`)
func newsgroupValidFormat(newsgroup string) bool { func newsgroupValidFormat(newsgroup string) bool {
return exp_valid_newsgroup.MatchString(newsgroup) return exp_valid_newsgroup.MatchString(newsgroup) && len(newsgroup) > 0
} }
func ValidNewsgroup(newsgroup string) bool { func ValidNewsgroup(newsgroup string) bool {