mirror of
https://github.com/gedoor/legado.git
synced 2024-09-03 09:55:00 +08:00
更新dataUrl图片正则
This commit is contained in:
parent
115ca980e9
commit
09457dd0cf
@ -11,7 +11,7 @@ object AppPattern {
|
||||
//匹配格式化后的图片格式
|
||||
val imgPattern: Pattern = Pattern.compile("<img[^>]*src=\"([^\"]*(?:\"[^>]+\\})?)\"[^>]*>")
|
||||
//dataURL图片类型
|
||||
val dataUriRegex = Regex("data:[\\w/\\-\\.]+;base64,(.*)")
|
||||
val dataUriRegex = Regex("data:.*?;base64,(.*)")
|
||||
|
||||
val nameRegex = Regex("\\s+作\\s*者.*|\\s+\\S+\\s+著")
|
||||
val authorRegex = Regex("^\\s*作\\s*者[::\\s]+|\\s+著")
|
||||
|
Loading…
Reference in New Issue
Block a user