Skip to content

Commit

Permalink
fixbug: #94 1000以上的数值兼容千分位
Browse files Browse the repository at this point in the history
  • Loading branch information
BaoXuebin committed Dec 22, 2024
1 parent e39ebcc commit 5938f3a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion script/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,8 @@ func CleanString(str string) string {
return ""
}
// 去除 " ", ";", "\r"
result := strings.ReplaceAll(str, " ", "")
result := strings.ReplaceAll(str, ",", "")
result = strings.ReplaceAll(result, " ", "")
result = strings.ReplaceAll(result, ";", "")
result = strings.ReplaceAll(result, "\r", "")
return result
Expand Down

0 comments on commit 5938f3a

Please sign in to comment.