summaryrefslogtreecommitdiff
path: root/d1pkgweb-query.go
diff options
context:
space:
mode:
Diffstat (limited to 'd1pkgweb-query.go')
-rw-r--r--d1pkgweb-query.go2
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]