fix fuzzy compare rate

This commit is contained in:
jiahua.liu 2020-05-13 19:42:10 +08:00
parent 7aeb831663
commit 19fc7a97bc

View File

@ -138,7 +138,6 @@ inline fun <T:Any> Collection<T>.fuzzySearchOnly(
var collide = 0
this.forEach {
with(index(it).fuzzyCompare(target)) {
println(index(it) + "->" + this)
if (this > rate) {
rate = this
potential = it