diff --git a/app/src/main/java/io/legado/app/help/BookHelp.kt b/app/src/main/java/io/legado/app/help/BookHelp.kt index 50478943a..6f15036b0 100644 --- a/app/src/main/java/io/legado/app/help/BookHelp.kt +++ b/app/src/main/java/io/legado/app/help/BookHelp.kt @@ -65,9 +65,7 @@ object BookHelp { } private fun formatFolderName(folderName: String): String { - return folderName.replace("/", "") - .replace(":", "") - .replace(".", "") + return folderName.replace("[\\\\/:*?\"<>|.]".toRegex(), "") } fun formatAuthor(author: String?): String {