This commit is contained in:
Jobobby04
2020-11-11 17:30:38 -05:00
parent a35e7871e8
commit 0594efb1c8
11 changed files with 28 additions and 31 deletions
+2 -1
View File
@@ -3,6 +3,7 @@ package exh.search
import exh.metadata.sql.tables.SearchMetadataTable
import exh.metadata.sql.tables.SearchTagTable
import exh.metadata.sql.tables.SearchTitleTable
import java.util.Locale
class SearchEngine {
private val queryCache = mutableMapOf<String, List<QueryComponent>>()
@@ -162,7 +163,7 @@ class SearchEngine {
}
}
query.toLowerCase().forEach { char ->
query.toLowerCase(Locale.getDefault()).forEach { char ->
if (char == '"') {
inQuotes = !inQuotes
} else if (enableWildcard && (char == '?' || char == '_')) {