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
@@ -53,7 +53,7 @@ class AnalyzeByJSoup(doc: Any) {
if (list.isEmpty()) {
return null
}
if (list.size == 1){
if (list.size == 1) {
return list.first()
}
return list.joinToString("\n")
@@ -375,12 +375,11 @@ class AnalyzeByJSoup(doc: Any) {
* 根据索引集合筛选元素
* */
if (split == '!') { //排除
/*
for (pcInt in indexSet) elements[pcInt] = null
elements.removeAll(nullSet) //测试过,这样就行
*/
for (pcInt in indexSet.toList().sortedDescending()) elements.removeAt(pcInt)
} else if (split == '.') { //选择
val es = Elements()