diff --git a/viper.go b/viper.go index c722cd5..3a55f23 100644 --- a/viper.go +++ b/viper.go @@ -621,7 +621,7 @@ func getConfigType() string { } cf := getConfigFile() - ext := path.Ext(cf) + ext := filepath.Ext(cf) if len(ext) > 1 { return ext[1:]