|
|
@ -112,13 +112,13 @@ 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(), "") |
|
|
|
.trim { it <= ' ' } |
|
|
|
.trim { it <= ' ' } |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
fun formatBookAuthor(author: String): String { |
|
|
|
fun formatBookAuthor(author: String): String { |
|
|
|
return author |
|
|
|
return author |
|
|
|
.replace(".*?作\\s*?者[::](.+)".toRegex(), "$1") |
|
|
|
.replace(".*?作\\s*?者[::]".toRegex(), "") |
|
|
|
.trim { it <= ' ' } |
|
|
|
.trim { it <= ' ' } |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|