resource: Avoid some strings.ToLower in globbing

See #4301
This commit is contained in:
Bjørn Erik Pedersen 2018-01-22 11:29:02 +01:00
parent adee04f4b4
commit 34a216fe67
No known key found for this signature in database
GPG key ID: 330E6E2BD4859D8F
2 changed files with 2 additions and 4 deletions

2
Gopkg.lock generated
View file

@ -381,6 +381,6 @@
[solve-meta]
analyzer-name = "dep"
analyzer-version = 1
inputs-digest = "3bd32a09fb219b2cddf0e5a91110430a05bfd2d3a28215c69b8013ff2b6b89dc"
inputs-digest = "c80ffe69d34005d8d72a87cc491ce1d9c91272e4b7f8fbd22d4fda8973fa8556"
solver-name = "gps-cdcl"
solver-version = 1

View file

@ -191,8 +191,6 @@ var (
)
func getGlob(pattern string) (glob.Glob, error) {
pattern = strings.ToLower(pattern)
var g glob.Glob
globMu.RLock()
@ -200,7 +198,7 @@ func getGlob(pattern string) (glob.Glob, error) {
globMu.RUnlock()
if !found {
var err error
g, err = glob.Compile(pattern, '/')
g, err = glob.Compile(strings.ToLower(pattern), '/')
if err != nil {
return nil, err
}