Skip to content

Commit 88bbd00

Browse files
LuoRenMudragove
authored andcommitted
Fix: 排除干员和指定干员错误的使用正则
1 parent cfd62ca commit 88bbd00

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/kotlin/plus/maa/backend/service/CopilotService.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,10 +274,10 @@ class CopilotService(
274274
if (operator.startsWith("~")) {
275275
val exclude = operator.substring(1)
276276
// 排除查询指定干员
277-
norQueries.add(Criteria.where("opers.name").regex(exclude))
277+
norQueries.add(Criteria.where("opers.name").`is`(exclude))
278278
} else {
279279
// 模糊匹配查询指定干员
280-
andQueries.add(Criteria.where("opers.name").regex(operator))
280+
andQueries.add(Criteria.where("opers.name").`is`(operator))
281281
}
282282
}
283283
}

0 commit comments

Comments
 (0)