From aadb4ae230ab7e3dbc1bda7d32b24ef6a184156a Mon Sep 17 00:00:00 2001 From: Jeff Becker Date: Thu, 4 Jan 2018 15:46:49 -0500 Subject: [PATCH] commit which fixes invalid line shit --- contrib/backends/srndv2/src/srnd/util.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/backends/srndv2/src/srnd/util.go b/contrib/backends/srndv2/src/srnd/util.go index 4178adb..5ee1ddd 100644 --- a/contrib/backends/srndv2/src/srnd/util.go +++ b/contrib/backends/srndv2/src/srnd/util.go @@ -297,7 +297,7 @@ func decAddr(encaddr, key string) string { var exp_valid_newsgroup = regexp.MustCompilePOSIX(`^[a-zA-Z0-9.]{1,128}$`) 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 {