1
0
mirror of https://github.com/tw93/Mole.git synced 2026-02-11 15:18:59 +00:00

refactor: Extract com.clash.app pattern to avoid ShellCheck redundancy warning

This commit is contained in:
tw93
2026-02-09 20:25:10 +08:00
parent c8b4b085c6
commit 7813124f33

View File

@@ -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*)