mirror of
https://github.com/everett7623/nodeloc_vps_test.git
synced 2024-11-20 15:05:22 +00:00
Update nodeloc_vps_autotest_ip.sh
This commit is contained in:
parent
33a00e1e97
commit
14897b441f
@ -158,10 +158,7 @@ run_all_tests() {
|
|||||||
|
|
||||||
# 格式化结果为 Markdown
|
# 格式化结果为 Markdown
|
||||||
format_results() {
|
format_results() {
|
||||||
# 转义特殊字符,但保留颜色代码
|
result="[tabs]
|
||||||
escaped_result=$(echo "$ip_quality_result" | sed 's/\\/\\\\/g; s/`/\\`/g; s/\$/\\$/g; s/\*/\\*/g; s/_/\\_/g')
|
|
||||||
|
|
||||||
result="[tabs]
|
|
||||||
[tab=\"IP质量\"]
|
[tab=\"IP质量\"]
|
||||||
\`\`\`ansi
|
\`\`\`ansi
|
||||||
$escaped_result
|
$escaped_result
|
||||||
|
Loading…
Reference in New Issue
Block a user