From 92d90f8d6b85e292bbe3885b656b44764b1ba52c Mon Sep 17 00:00:00 2001 From: gedoor Date: Fri, 15 Jan 2021 09:18:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/java/io/legado/app/utils/StringExtensions.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/io/legado/app/utils/StringExtensions.kt b/app/src/main/java/io/legado/app/utils/StringExtensions.kt index 4263fc896..b6a6d23e2 100644 --- a/app/src/main/java/io/legado/app/utils/StringExtensions.kt +++ b/app/src/main/java/io/legado/app/utils/StringExtensions.kt @@ -10,7 +10,7 @@ import java.util.* val removeHtmlRegex = "]*>".toRegex() val imgRegex = "]*>".toRegex() -val notImgHtmlRegex = "]*>".toRegex() +val notImgHtmlRegex = "])[^<>]*>".toRegex() fun String?.safeTrim() = if (this.isNullOrBlank()) null else this.trim()