Skip to content

Commit 4d31e32

Browse files
committed
fix(dbm-services): 修正os清洗的单词拼写错误 #14532
1 parent c714850 commit 4d31e32

File tree

1 file changed

+1
-1
lines changed
  • dbm-services/common/db-resource/internal/util

1 file changed

+1
-1
lines changed

dbm-services/common/db-resource/internal/util/util.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ func CleanOsName(osName string) string {
2525
tr := regexp.MustCompile(`(?i)^tencent`)
2626
if tr.MatchString(strings.TrimSpace(osName)) {
2727
r := regexp.MustCompile(`\d+(\.\d+)*`)
28-
return "tliunx-" + r.FindString(osName)
28+
return "tlinux-" + r.FindString(osName)
2929
}
3030
wr := regexp.MustCompile(`(?i)Windows\s*Server\s*\d\d\d\d`)
3131
if wr.MatchString(osName) {

0 commit comments

Comments
 (0)