Skip to content

Commit

Permalink
fix 搜索匹配
Browse files Browse the repository at this point in the history
  • Loading branch information
尹甲仑 committed Sep 16, 2022
1 parent 5ca487a commit e15a48c
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -104,10 +104,10 @@ object WeworkRoomUtil {
sleep(Constant.CHANGE_PAGE_INTERVAL)
//消息页搜索结果列表
val selectListView = findOneByClazz(getRoot(), Views.ListView)
val searchResult = AccessibilityUtil.findOneByText(
val regex = "^$trimTitle(-.*)?(…)?(\\(.*?\\))?" + if (needTrim) "" else "$"
val searchResult = AccessibilityUtil.findOneByTextRegex(
selectListView,
trimTitle,
exact = !needTrim,
regex,
timeout = 2000,
root = false
)

0 comments on commit e15a48c

Please sign in to comment.