From e6b109125e222949c1a8baa53dbe006803d08c97 Mon Sep 17 00:00:00 2001 From: Nekojimi Date: Sat, 2 Oct 2021 12:20:21 +0100 Subject: [PATCH] Searcher: compare strings case-insensitive. --- .../java/moe/nekojimi/musicsearcher/providers/Searcher.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/moe/nekojimi/musicsearcher/providers/Searcher.java b/src/main/java/moe/nekojimi/musicsearcher/providers/Searcher.java index 4771886..392c303 100644 --- a/src/main/java/moe/nekojimi/musicsearcher/providers/Searcher.java +++ b/src/main/java/moe/nekojimi/musicsearcher/providers/Searcher.java @@ -92,7 +92,7 @@ public abstract class Searcher { if (comparison == null) continue; - double score = StringUtils.getJaroWinklerDistance(query.getTextSearch(), comparison); + double score = StringUtils.getJaroWinklerDistance(query.getTextSearch().toLowerCase(), comparison.toLowerCase()); if (score > fullTextScore) fullTextScore = score; }