mirror of
https://github.com/mihonapp/mihon.git
synced 2025-10-22 11:08:54 +02:00
Fix some bugs in the search engine.
This commit is contained in:
@@ -12,7 +12,7 @@ class Text: QueryComponent() {
|
||||
when(component) {
|
||||
is StringTextComponent -> builder.then(component.value)
|
||||
is SingleWildcard -> builder.anyChar()
|
||||
is MultiWildcard -> builder.zeroOrMore()
|
||||
is MultiWildcard -> builder.anything()
|
||||
}
|
||||
}
|
||||
return builder
|
||||
@@ -20,5 +20,7 @@ class Text: QueryComponent() {
|
||||
|
||||
fun rawTextOnly() = components
|
||||
.filter { it is StringTextComponent }
|
||||
.joinToString(separator = "")
|
||||
.joinToString(separator = "", transform = {
|
||||
(it as StringTextComponent).value
|
||||
})
|
||||
}
|
||||
|
Reference in New Issue
Block a user