Merge pull request #1102 from bushixuanqi/master

Update AnalyzeByJSoup.kt
pull/1104/head
kunfei 3 years ago committed by GitHub
commit 73b5bd9e5a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      app/src/main/java/io/legado/app/model/analyzeRule/AnalyzeByJSoup.kt

@ -237,7 +237,12 @@ class AnalyzeByJSoup(doc: Any) {
else -> {
//为保证查找顺序,区间和单个索引都添加到同一集合
if(curList.isEmpty())indexSet.indexs.add(curInt!!)
if(curList.isEmpty()) {
if(curInt == null) break //是jsoup选择器而非索引列表,跳出
indexSet.indexs.add(curInt)
}
else{
//列表最后压入的是区间右端,若列表有两位则最先压入的是间隔

Loading…
Cancel
Save