diff --git a/app/src/main/java/io/legado/app/utils/StringExtensions.kt b/app/src/main/java/io/legado/app/utils/StringExtensions.kt index 856a6c2d9..a31dff411 100644 --- a/app/src/main/java/io/legado/app/utils/StringExtensions.kt +++ b/app/src/main/java/io/legado/app/utils/StringExtensions.kt @@ -37,7 +37,9 @@ fun String.startWithIgnoreCase(start: String): Boolean { return if (this.isBlank()) false else startsWith(start, true) } - +/** + * 计算相似度 + */ fun String.similarity(target: String): Float { //计算两个字符串的长度。 val len1 = this.length