Skip to content

Commit

Permalink
跟随上游更新到v0.8.1,增加对纯真xdb支持(文件名ip2region-cz88.xdb)
Browse files Browse the repository at this point in the history
  • Loading branch information
fcwys committed May 11, 2024
1 parent 0be0de6 commit 8c65715
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/ip2region/ip2region.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ func (db Ip2Region) Find(query string, params ...string) (result fmt.Stringer, e
if db.seacher != nil {
res, err := db.seacher.SearchByStr(query)
res=strings.ReplaceAll(res, "|", " ")
res=strings.ReplaceAll(res, "\t", " ")
if err != nil {
return nil, err
} else {
Expand Down

0 comments on commit 8c65715

Please sign in to comment.