mirror of https://github.com/spf13/viper.git
Replaced ContainsRune() usage with IndexRune() for portability
This commit is contained in:
parent
4257721a8b
commit
1803d14360
2
util.go
2
util.go
|
@ -119,7 +119,7 @@ func absPathify(inPath string) string {
|
||||||
|
|
||||||
inPath = filepath.FromSlash(inPath)
|
inPath = filepath.FromSlash(inPath)
|
||||||
|
|
||||||
if strings.ContainsRune(inPath, '$') {
|
if strings.IndexRune(inPath, '$') >= 0 {
|
||||||
inPath = os.Expand(inPath, getEnv)
|
inPath = os.Expand(inPath, getEnv)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue