Fix type mapping for fields

This commit is contained in:
2024-09-15 13:09:40 +02:00
parent 627ca81181
commit 4f8b8fe029

View File

@@ -287,7 +287,7 @@ func parseField(s *goquery.Selection) (Field, error) {
if typeElement.Length() == 0 {
return res, fmt.Errorf("no type found")
}
res.Type = CleanUp(typeElement.Text())
res.Type = MapType(CleanUp(typeElement.Text()))
comments := s.ChildrenFiltered("div")
if comments.Length() == 0 {