部分中文转换为多语言代号

This commit is contained in:
刘祥超
2023-06-28 19:06:16 +08:00
parent 9db82b0bea
commit 141dd89f6f
14 changed files with 317 additions and 178 deletions

View File

@@ -308,7 +308,7 @@ func upperWord(word string) string {
switch word {
case "api", "http", "https", "tcp", "tls", "udp", "ip", "dns", "ns",
"waf", "acme", "ssh", "toa", "http2", "http3", "uam", "cc",
"db", "isp", "sni", "ui":
"db", "isp", "sni", "ui", "soa", "ocsp", "en", "zh":
return strings.ToUpper(word)
case "ipv6":
return "IPv6"
@@ -316,6 +316,8 @@ func upperWord(word string) string {
return "DDoS"
case "webp":
return "WebP"
case "doh":
return "DoH"
}
return strings.ToUpper(word[:1]) + word[1:]