use equalfold in filter equals checks (#2995)
Because it's nifty.
-----
#### Type of change
- [x] 🧹 Tech Debt/Cleanup
This commit is contained in:
parent
7e04cefa2c
commit
6190b1ba05
@ -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()
|
||||
|
||||
@ -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)
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------------------------------
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user