Signed-off-by: Émile Ré <emile@getprobo.com>
This commit is contained in:
Émile Ré
2026-05-12 10:33:52 +04:00
parent fa55c0fb6e
commit 017b829114
2 changed files with 26 additions and 26 deletions

View File

@@ -92,7 +92,7 @@ func parseSizeAttr(sizes string) int {
}
best := 0
for _, token := range strings.Fields(sizes) {
for token := range strings.FieldsSeq(sizes) {
token = strings.ToLower(token)
parts := strings.SplitN(token, "x", 2)
if len(parts) != 2 {