fix: theme search ranking is now case insensitive

This commit is contained in:
furtidev
2024-11-16 20:05:11 +06:00
parent fb2510c2ed
commit 8901027e6d

View File

@ -293,7 +293,7 @@ const Preview = struct {
for (self.themes, 0..) |*theme, i| {
theme.rank = zf.rank(theme.theme, tokens.items, .{
.to_lower = false,
.to_lower = true,
.plain = true,
});
if (theme.rank != null) try self.filtered.append(i);