pull/282/head
gedoor 4 years ago
parent be56532a49
commit 04f9906345
  1. 2
      app/src/main/java/io/legado/app/utils/StringExtensions.kt

@ -2,7 +2,7 @@ package io.legado.app.utils
val removeHtmlRegex = "</?(?:div|p|br|hr|h\\d|article|dd|dl)[^>]*>".toRegex()
val imgRegex = "<img[^>]*>".toRegex()
val notImgHtmlRegex = "^\\s*|</?(?!img)\\w+[^>]*>".toRegex()
val notImgHtmlRegex = "</?(?!img)\\w+[^>]*>".toRegex()
fun String?.safeTrim() = if (this.isNullOrBlank()) null else this.trim()

Loading…
Cancel
Save