From 7fbf00af4aa03a781e1140345fe32c75746b4f7e Mon Sep 17 00:00:00 2001 From: moqsien Date: Fri, 15 Mar 2024 13:39:27 +0800 Subject: [PATCH] scala fix --- pkgs/versions/scala.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/versions/scala.go b/pkgs/versions/scala.go index 0542ae8..4095027 100644 --- a/pkgs/versions/scala.go +++ b/pkgs/versions/scala.go @@ -75,6 +75,7 @@ func (s *Scala) FetchAll() { if s.doc != nil { s.doc.Find("div.download-elem").Find("a").Each(func(_ int, ss *goquery.Selection) { vName := strings.ReplaceAll(ss.Text(), "Scala ", "") + vName = strings.ReplaceAll(vName, " ", "-") if _, ok := s.versions[vName]; !ok { s.versions[vName] = []*VFile{ {