This commit is contained in:
sindricn
2025-10-01 11:21:13 +08:00
parent 251ada1bf3
commit 5bfb2dc324
+2 -2
View File
@@ -2873,7 +2873,7 @@ remove_rule_from_config() {
local rule_found=false
while IFS= read -r line || [[ -n "$line" ]]; do
if [[ "$line" =~ ^[[:space:]]*-[[:space:]]*name:[[:space:]]*${rule_name}[[:space:]]*$ ]]; then
if [[ "$line" =~ ^[[:space:]]*-[[:space:]]*name:[[:space:]]*[\"']*${rule_name}[\"']*[[:space:]]*$ ]]; then
in_target_rule=true
rule_found=true
continue
@@ -3331,4 +3331,4 @@ prompt_config_sync() {
# 如果脚本被直接执行
if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
manage_outbound
fi
fi