Skip to content

Commit

Permalink
fix match type bug
Browse files Browse the repository at this point in the history
  • Loading branch information
dimus committed Nov 3, 2023
1 parent 5aff715 commit f04cb5c
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 8 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@

## Unreleased

## [v1.1.9] - 2023-11-03 Fri

- Add: update modules, gnparser v1.9.0.
- Add: use `slices` package for sorting.
- Fix: update gnlib, fixes match type bug.

## [v1.1.8] - 2023-09-26 Tue

Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ require (
github.com/dustin/go-humanize v1.0.1
github.com/dvirsky/levenshtein v0.0.0-20200624034316-59b26b61c3c8
github.com/gnames/gnfmt v0.4.3
github.com/gnames/gnlib v0.21.0
github.com/gnames/gnlib v0.25.0
github.com/gnames/gnparser v1.9.0
github.com/gnames/gnsys v0.2.3
github.com/gnames/gnuuid v0.1.2
Expand All @@ -33,7 +33,7 @@ require (
github.com/dgraph-io/ristretto v0.0.3-0.20200630154024-f66de99634de // indirect
github.com/dgryski/go-farm v0.0.0-20190423205320-6a90982ecee2 // indirect
github.com/fsnotify/fsnotify v1.6.0 // indirect
github.com/gnames/gnstats v0.1.0 // indirect
github.com/gnames/gnstats v0.2.1 // indirect
github.com/gnames/organizer v0.1.1 // indirect
github.com/gnames/tribool v0.1.1 // indirect
github.com/golang-jwt/jwt v3.2.2+incompatible // indirect
Expand Down
8 changes: 4 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -177,12 +177,12 @@ github.com/gin-gonic/gin v1.1.5-0.20170702092826-d459835d2b07/go.mod h1:7cKuhb5q
github.com/gnames/gnfmt v0.1.0/go.mod h1:WG9c3CoiVrGc1SDsxLk7zjmv2B4UIzI00m4K5Khc/d0=
github.com/gnames/gnfmt v0.4.3 h1:TUbqT+2KsC7qdo2lUICw9vOx2tBDF80ehvBrLZaMMR0=
github.com/gnames/gnfmt v0.4.3/go.mod h1:Nnxb1w0jh+8cit4gVkfSKqH2lA2chImkvSiDvAFhJes=
github.com/gnames/gnlib v0.21.0 h1:QRAloG5mRgIoUURkiHSBTOQ9gZFEOO22192JRTpi0Is=
github.com/gnames/gnlib v0.21.0/go.mod h1:Tz3QsaUzL97cUPqO/QQ7wVGJYmEP7IlYq0jpZtRn3M0=
github.com/gnames/gnlib v0.25.0 h1:mMmNlzsNeX3hf6akJASGwGUU2H5VP9o+dKowQNQeodE=
github.com/gnames/gnlib v0.25.0/go.mod h1:NpOFjiabjkMM/S/C8semOLlMwH5qc/hqyIGBg5Ty+vA=
github.com/gnames/gnparser v1.9.0 h1:R5njjcmT9+6sFYvGqb77jaPvvalzJgcHhor+l3MXhUo=
github.com/gnames/gnparser v1.9.0/go.mod h1:wpamBRAIxYGBbAwnhgUTeH6qMRomiRNSb5WrreDtE/4=
github.com/gnames/gnstats v0.1.0 h1:qycaVt1ot3MtAZFnguSPXtND/BrKmw5Zhd1vfwcKxOs=
github.com/gnames/gnstats v0.1.0/go.mod h1:wWqpQiTICJRiFpP4jhsraMXdX4SRnRCo+AWkw1jiVvE=
github.com/gnames/gnstats v0.2.1 h1:JAzDwcws6L9xTsHD9uMr1OaUNh9vN+Ghnn2CFRd3Ilo=
github.com/gnames/gnstats v0.2.1/go.mod h1:wWqpQiTICJRiFpP4jhsraMXdX4SRnRCo+AWkw1jiVvE=
github.com/gnames/gnsys v0.2.3 h1:4Qb6jhJJMfLeyhKkela1V2R0cd/Vf8Qn6tqOWOPy/lY=
github.com/gnames/gnsys v0.2.3/go.mod h1:NTE1nKitxH/eJf8f386zqayaUHC6DnqmVODb7XXCsBk=
github.com/gnames/gnuuid v0.1.2 h1:VAaZqggCUaLys86z6bZhDjWn60iVIgX/1vstKgCW0q8=
Expand Down
2 changes: 1 addition & 1 deletion pkg/io/rest/bug_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ var bugs = []struct {
},
{
msg: "#59 should provide correct match type",
name: "Pleurotoma gomphoidea avita F. Edwards, 1860",
name: "Pleurotoma godiea avita F. Edwards, 1860",
matchCanonical: "Pleurotoma anita",
matchType: vlib.PartialFuzzy,
editDistance: 1,
Expand Down
2 changes: 1 addition & 1 deletion pkg/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package gnmatcher
var (
// Version of the gnmatcher. When make runs, it automatically
// sets the variable using git tags and hashes.
Version = "v1.1.8"
Version = "v1.1.9"
// Build timestamp. When make runs, it automatically sets the variable.
Build = "n/a"
)

0 comments on commit f04cb5c

Please sign in to comment.