fixbug: #94 1000以上的数值兼容千分位

This commit is contained in:
BaoXuebin 2024-12-22 23:14:53 +08:00
parent e39ebcc870
commit 5938f3aef9
1 changed files with 2 additions and 1 deletions

View File

@ -269,7 +269,8 @@ func CleanString(str string) string {
return "" return ""
} }
// 去除 " ", ";", "\r" // 去除 " ", ";", "\r"
result := strings.ReplaceAll(str, " ", "") result := strings.ReplaceAll(str, ",", "")
result = strings.ReplaceAll(result, " ", "")
result = strings.ReplaceAll(result, ";", "") result = strings.ReplaceAll(result, ";", "")
result = strings.ReplaceAll(result, "\r", "") result = strings.ReplaceAll(result, "\r", "")
return result return result