Skip to content

Commit 6c07b7f

Browse files
committed
替换纯真IP分割符为空格
1 parent 999c0dd commit 6c07b7f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/wry/wry.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ func (r *Result) DecodeGBK() *Result {
9898
}
9999

100100
func (r *Result) Trim() *Result {
101+
r.Country = strings.TrimSpace(strings.ReplaceAll(r.Country, "–", " ")) //替换纯真IP分隔符为空格
101102
r.Country = strings.TrimSpace(strings.ReplaceAll(r.Country, "CZ88.NET", ""))
102103
r.Area = strings.TrimSpace(strings.ReplaceAll(r.Area, "CZ88.NET", ""))
103104
return r

0 commit comments

Comments
 (0)