mirror of
https://github.com/gedoor/legado.git
synced 2024-08-30 09:23:26 +08:00
书源校验:不显示调试符号
This commit is contained in:
parent
e3f478c686
commit
b02ee96298
@ -16,6 +16,9 @@ object AppPattern {
|
|||||||
val fileNameRegex = Regex("[\\\\/:*?\"<>|.]")
|
val fileNameRegex = Regex("[\\\\/:*?\"<>|.]")
|
||||||
val splitGroupRegex = Regex("[,;,;]")
|
val splitGroupRegex = Regex("[,;,;]")
|
||||||
|
|
||||||
|
//书源调试信息中的各种符号
|
||||||
|
val debugMessageSymbolRegex = Regex("[⇒◇┌└≡]")
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 所有标点
|
* 所有标点
|
||||||
*/
|
*/
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
package io.legado.app.model
|
package io.legado.app.model
|
||||||
|
|
||||||
import android.annotation.SuppressLint
|
import android.annotation.SuppressLint
|
||||||
|
import io.legado.app.constant.AppPattern
|
||||||
import io.legado.app.data.entities.*
|
import io.legado.app.data.entities.*
|
||||||
import io.legado.app.help.coroutine.CompositeCoroutine
|
import io.legado.app.help.coroutine.CompositeCoroutine
|
||||||
import io.legado.app.model.rss.Rss
|
import io.legado.app.model.rss.Rss
|
||||||
@ -56,7 +57,7 @@ object Debug {
|
|||||||
if (showTime && debugTimeMap[sourceUrl] != null) {
|
if (showTime && debugTimeMap[sourceUrl] != null) {
|
||||||
val time =
|
val time =
|
||||||
debugTimeFormat.format(Date(System.currentTimeMillis() - debugTimeMap[sourceUrl]!!))
|
debugTimeFormat.format(Date(System.currentTimeMillis() - debugTimeMap[sourceUrl]!!))
|
||||||
printMsg = printMsg.substring(1)
|
printMsg = printMsg.replace(AppPattern.debugMessageSymbolRegex,"")
|
||||||
debugMessageMap[sourceUrl] = "$time $printMsg"
|
debugMessageMap[sourceUrl] = "$time $printMsg"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user