From 7813124f33082f4f0427494d4c607c9e38de70f1 Mon Sep 17 00:00:00 2001 From: tw93 Date: Mon, 9 Feb 2026 20:25:10 +0800 Subject: [PATCH] refactor: Extract `com.clash.app` pattern to avoid ShellCheck redundancy warning --- lib/core/app_protection.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/core/app_protection.sh b/lib/core/app_protection.sh index a7edd64..82e330e 100755 --- a/lib/core/app_protection.sh +++ b/lib/core/app_protection.sh @@ -687,7 +687,11 @@ should_protect_data() { com.sublimetext.* | com.sublimehq.* | Cursor | Claude | ChatGPT | Ollama) return 0 ;; - com.nssurge.* | com.v2ray.* | com.clash.* | com.clash.app | ClashX* | Surge* | Shadowrocket* | Quantumult*) + # Specific match to avoid ShellCheck redundancy warning with com.clash.* + com.clash.app) + return 0 + ;; + com.nssurge.* | com.v2ray.* | com.clash.* | ClashX* | Surge* | Shadowrocket* | Quantumult*) return 0 ;; clash-* | Clash-* | *-clash | *-Clash | clash.* | Clash.* | clash_* | clashverge* | ClashVerge*)