diff --git a/nodeloc_vps_autotest_ip.sh b/nodeloc_vps_autotest_ip.sh index c517947..fa64eef 100644 --- a/nodeloc_vps_autotest_ip.sh +++ b/nodeloc_vps_autotest_ip.sh @@ -137,10 +137,13 @@ run_all_tests() { } format_results() { +# 清理和格式化输出 +cleaned_output=$(echo "$ip_quality_result" | sed 's/.*\[\]# \([^[]*\)\[3m\([^[]*\)............... \([^%]*\)% \(.*\)/\1 - \3 - \4/g') + result="[tabs] [tab=\"IP质量\"] \`\`\` -$ip_quality_result +$cleaned_output \`\`\` [/tab] [/tabs]