mirror of
https://github.com/gedoor/legado.git
synced 2024-09-01 09:34:25 +08:00
优化
This commit is contained in:
parent
ffa065c402
commit
9acb2c2bde
@ -16,8 +16,18 @@ object AppPattern {
|
||||
val fileNameRegex = Regex("[\\\\/:*?\"<>|.]")
|
||||
val splitGroupRegex = Regex("[,;,;]")
|
||||
|
||||
/**
|
||||
* 所有标点
|
||||
*/
|
||||
val bdRegex = Regex("(\\p{P})+")
|
||||
|
||||
/**
|
||||
* 换行
|
||||
*/
|
||||
val rnRegex = Regex("[\\r\\n]")
|
||||
|
||||
/**
|
||||
* 不发音段落判断
|
||||
*/
|
||||
val notReadAloudRegex = Regex("^(\\s|\\p{C}|\\p{P}|\\p{Z}|\\p{S})+\$")
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user