Use case-insensitive matching in nameMatchesPath (#2378)

* Use case-insensitive matching in nameMatchesPath

Also ensures that only unique words are returned in getPathWords.
This commit is contained in:
WithoutPants
2022-03-11 09:35:48 +11:00
committed by GitHub
parent 7bd47c651c
commit e4d6d3b085
3 changed files with 12 additions and 8 deletions

View File

@@ -54,6 +54,12 @@ func Test_nameMatchesPath(t *testing.T) {
"before_first last/after",
6,
},
{
"within string case insensitive",
name,
"before FIRST last/after",
6,
},
{
"not within string",
name,