mirror of https://github.com/Xhofe/alist
fix: judge can proxy with ext (close #4688)
parent
f09bb88846
commit
89832c296f
|
@ -46,9 +46,9 @@ func IsSubPath(path string, subPath string) bool {
|
|||
func Ext(path string) string {
|
||||
ext := stdpath.Ext(path)
|
||||
if strings.HasPrefix(ext, ".") {
|
||||
return ext[1:]
|
||||
ext = ext[1:]
|
||||
}
|
||||
return ext
|
||||
return strings.ToLower(ext)
|
||||
}
|
||||
|
||||
func EncodePath(path string, all ...bool) string {
|
||||
|
|
Loading…
Reference in New Issue