1 parent e04dadc commit 3b8a4c8Copy full SHA for 3b8a4c8
1 file changed
core/src/cn/harryh/arkpets/ArkPets.java
@@ -418,7 +418,10 @@ private HWndCtrl refreshWindowIndex() {
418
if (wndNum == -1) {
419
boolean isBlackListWindow = false;
420
for (Pattern pattern : Const.titleBlacklist) {
421
- isBlackListWindow = pattern.matcher(hWndCtrl.windowText).matches();
+ if (pattern.matcher(hWndCtrl.windowText).find()) {
422
+ isBlackListWindow = true;
423
+ break;
424
+ }
425
}
426
if (isBlackListWindow) continue;
427
if (hWndCtrl.posLeft <= myPos && myPos <= hWndCtrl.posRight) {
0 commit comments