Searcher: compare strings case-insensitive.

master
Nekojimi 3 years ago
parent 4df2f55922
commit e6b109125e
  1. 2
      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;
}

Loading…
Cancel
Save