加入书名和作者处理

pull/300/head
gedoor 4 years ago
parent 4def397ab0
commit ce4d4bfb11
  1. 2
      app/src/main/java/io/legado/app/help/BookHelp.kt

@ -112,7 +112,7 @@ object BookHelp {
fun formatBookName(name: String): String { fun formatBookName(name: String): String {
return name return name
.replace("(.*?)\\s*\\s*者.*".toRegex(), "$1") .replace("(.*?)\\s+\\s*者.*".toRegex(), "$1")
.trim { it <= ' ' } .trim { it <= ' ' }
} }

Loading…
Cancel
Save