use equalfold in filter equals checks (#2995)

Because it's nifty.

-----

#### Type of change

- [x] 🧹 Tech Debt/Cleanup
This commit is contained in:
Keepers 2023-03-31 10:36:19 -06:00 committed by GitHub
parent 7e04cefa2c
commit 6190b1ba05
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 3 deletions

View File

@ -1098,7 +1098,6 @@ func (suite *BackupOpIntegrationSuite) TestBackup_Run_exchangeIncrementals() {
}
for _, test := range table {
suite.Run(test.name, func() {
fmt.Printf("\n-----\ntest %+v\n-----\n", test.name)
var (
t = suite.T()
incMB = evmock.NewBus()

View File

@ -444,7 +444,7 @@ func (f Filter) Compare(input string) bool {
// true if t == i
func equals(target, input string) bool {
return target == input
return strings.EqualFold(target, input)
}
// true if t > i
@ -531,7 +531,7 @@ func pathSuffix(target, input string) bool {
// The input is assumed to be the complete path that may
// match the target.
func pathEquals(target, input string) bool {
return normPathElem(input) == target
return strings.EqualFold(normPathElem(input), target)
}
// ----------------------------------------------------------------------------------------------------