diff options
author | KatolaZ <katolaz@freaknet.org> | 2018-06-05 00:01:11 +0100 |
---|---|---|
committer | KatolaZ <katolaz@freaknet.org> | 2018-06-05 00:01:11 +0100 |
commit | 9a9c8c830f8fc9f602f5cdbb3499d4a9e85ed578 (patch) | |
tree | 41022e5e8322b3d8af8bcfca821056756c594277 | |
parent | c16c23aa558608d98dabe524361f09c8011d6ca5 (diff) |
amended suite extraction - FIXME: needs config param
-rw-r--r-- | d1pkgweb-query.go | 2 |
1 files changed, 1 insertions, 1 deletions
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] |