mirror of
https://github.com/spf13/viper
synced 2024-12-23 12:07:02 +00:00
Replaced ContainsRune() usage with IndexRune() for portability
This commit is contained in:
parent
4257721a8b
commit
1803d14360
1 changed files with 1 additions and 1 deletions
2
util.go
2
util.go
|
@ -119,7 +119,7 @@ func absPathify(inPath string) string {
|
|||
|
||||
inPath = filepath.FromSlash(inPath)
|
||||
|
||||
if strings.ContainsRune(inPath, '$') {
|
||||
if strings.IndexRune(inPath, '$') >= 0 {
|
||||
inPath = os.Expand(inPath, getEnv)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue