This commit is contained in:
Horis
2024-03-18 11:56:49 +08:00
parent 8cd9610992
commit 1e35658d44
2 changed files with 6 additions and 5 deletions
@@ -375,12 +375,11 @@ class AnalyzeByJSoup(doc: Any) {
* 根据索引集合筛选元素 * 根据索引集合筛选元素
* */ * */
if (split == '!') { //排除 if (split == '!') { //排除
/*
for (pcInt in indexSet) elements[pcInt] = null for (pcInt in indexSet) elements[pcInt] = null
elements.removeAll(nullSet) //测试过,这样就行 elements.removeAll(nullSet) //测试过,这样就行
*/
for (pcInt in indexSet.toList().sortedDescending()) elements.removeAt(pcInt)
} else if (split == '.') { //选择 } else if (split == '.') { //选择
val es = Elements() val es = Elements()
+3 -1
View File
@@ -20,7 +20,9 @@ lifecycle = "2.7.0"
glide = "4.16.0" glide = "4.16.0"
gson = "2.10.1" gson = "2.10.1"
jsonPath = "2.9.0" jsonPath = "2.9.0"
jsoup = "1.17.2" # issue #3811,不要更新版本,新版引入了一个破坏性变更(详见https://github.com/jhy/jsoup/pull/2017
# 若要升级请确保相关代码不会受此变更影响(如AnalyzeByJSoup.kt、JsoupXpath库等)
jsoup = "1.16.2"
jsoupxpath = "2.5.3" jsoupxpath = "2.5.3"
coroutines = "1.8.0" coroutines = "1.8.0"
liveeventbus = "1.8.14" liveeventbus = "1.8.14"