diff --git a/app/src/main/java/io/legado/app/utils/CodeViewExtensions.kt b/app/src/main/java/io/legado/app/utils/CodeViewExtensions.kt index fa258be09..d3c450b25 100644 --- a/app/src/main/java/io/legado/app/utils/CodeViewExtensions.kt +++ b/app/src/main/java/io/legado/app/utils/CodeViewExtensions.kt @@ -9,7 +9,7 @@ import splitties.init.appCtx import java.util.regex.Pattern val legadoPattern: Pattern = Pattern.compile("\\|\\||&&|%%|@js:|@Json:|@css:|@@|@XPath:") -val jsonPattern: Pattern = Pattern.compile("\"\\:|\"|\\{|\\}|\\[|\\]") +val jsonPattern: Pattern = Pattern.compile("\".*?\"\\:|\"|\\{|\\}|\\[|\\]") val jsPattern: Pattern = Pattern.compile("var|\\\\n") fun CodeView.addLegadoPattern() {