pull/1395/head
gedoor 3 years ago
parent 3f5ded2c4e
commit d30dc44aa9
  1. 2
      app/src/main/java/io/legado/app/utils/CodeViewExtensions.kt

@ -9,7 +9,7 @@ import splitties.init.appCtx
import java.util.regex.Pattern import java.util.regex.Pattern
val legadoPattern: Pattern = Pattern.compile("\\|\\||&&|%%|@js:|@Json:|@css:|@@|@XPath:") 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") val jsPattern: Pattern = Pattern.compile("var|\\\\n")
fun CodeView.addLegadoPattern() { fun CodeView.addLegadoPattern() {

Loading…
Cancel
Save