-
Notifications
You must be signed in to change notification settings - Fork 51
Open
Description
Thanks for the useful tool.
It seems that the matcher does not deal well with uppercases. For instance:
import (
"fmt"
"github.com/schollz/closestmatch"
)
func main() {
fmt.Println("Hello, playground")
words := []string{
"foo",
"bar",
"faz",
}
bagSize := []int{2}
cm := closestmatch.New(words, bagSize)
fmt.Println(cm.Closest("fooo"))
fmt.Println(cm.Closest("FOO"))
}
https://play.golang.org/p/M9IMnrqRUsG
does not find anything for FOO.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels