Update AnalyzeByJSoup.kt

This commit is contained in:
iyhkhtrk 2024-03-16 17:17:00 +08:00 committed by GitHub
parent fe83a27a37
commit a17441fb49
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -380,7 +380,7 @@ class AnalyzeByJSoup(doc: Any) {
elements.removeAll(nullSet) //测试过,这样就行
*/
for (pcInt in indexSet) elements.removeAt(pcInt)
for (pcInt in indexSet.toList().sortedDescending()) elements.removeAt(pcInt)
} else if (split == '.') { //选择
val es = Elements()