From 4f8b8fe0295fb9d6d81a5a49d51f853a60a61bf1 Mon Sep 17 00:00:00 2001 From: PhatPhuckDave Date: Sun, 15 Sep 2024 13:09:40 +0200 Subject: [PATCH] Fix type mapping for fields --- class.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/class.go b/class.go index 73bf590..53ebbe8 100644 --- a/class.go +++ b/class.go @@ -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 {