From b00ce8214479c50e137db73c77b0cc1393c5e7d4 Mon Sep 17 00:00:00 2001 From: Jeroen Wijenbergh Date: Thu, 12 Feb 2026 12:03:54 +0100 Subject: All: Run modernize --test --fix --- internal/levenshtein/levenshtein.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal/levenshtein') diff --git a/internal/levenshtein/levenshtein.go b/internal/levenshtein/levenshtein.go index 80f58a3..d731e5d 100644 --- a/internal/levenshtein/levenshtein.go +++ b/internal/levenshtein/levenshtein.go @@ -56,8 +56,8 @@ func levenshtein(os, ot string) int { // for these a score of -1 returned // for all others it is the normal levenshtein distance func adjusted(substr, full string) int { - sSub := strings.Split(substr, " ") - for _, vSub := range sSub { + sSub := strings.SplitSeq(substr, " ") + for vSub := range sSub { if !strings.Contains(full, vSub) { return -1 } -- cgit v1.2.3