mirror of
https://github.com/mihonapp/mihon.git
synced 2025-06-27 19:47:51 +02:00
Fix HBrowse tag search
This commit is contained in:
@ -152,7 +152,7 @@ class HBrowse : HttpSource(), LewdSource<HBrowseSearchMetadata, Document>, UrlIm
|
|||||||
// ns, value
|
// ns, value
|
||||||
var minContent: Pair<String, String> = "" to ""
|
var minContent: Pair<String, String> = "" to ""
|
||||||
for(ns in ALL_TAGS) {
|
for(ns in ALL_TAGS) {
|
||||||
val (v, d) = ns.value.nearest(query, minDist)
|
val (v, d) = ns.value.nearest(it.rawTextOnly(), minDist)
|
||||||
if(d < minDist) {
|
if(d < minDist) {
|
||||||
minDist = d
|
minDist = d
|
||||||
minContent = ns.key to v
|
minContent = ns.key to v
|
||||||
|
Reference in New Issue
Block a user