From 9a9c8c830f8fc9f602f5cdbb3499d4a9e85ed578 Mon Sep 17 00:00:00 2001 From: KatolaZ Date: Tue, 5 Jun 2018 00:01:11 +0100 Subject: amended suite extraction - FIXME: needs config param --- d1pkgweb-query.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/d1pkgweb-query.go b/d1pkgweb-query.go index c5ca19f..4fbe4bf 100644 --- a/d1pkgweb-query.go +++ b/d1pkgweb-query.go @@ -144,7 +144,7 @@ func parseLines(s string) []Result { scanner := bufio.NewScanner(strings.NewReader(s)) for scanner.Scan() { URL := scanner.Text() - URLParts := strings.Split(URL, "/") + URLParts := strings.Split(URL, "/")[1:] pkgNameVer := strings.Split(URLParts[len(URLParts)-1], ".html")[0] Name := strings.Split(pkgNameVer, "_")[0] Version := strings.Split(pkgNameVer, "_")[1] -- cgit v1.2.3