mirror of
https://github.com/HChaZZY/alist.git
synced 2025-12-06 11:03:49 +08:00
* refactor: FilterReadMeScripts * .
This commit is contained in:
@@ -45,7 +45,7 @@ func IsSubPath(path string, subPath string) bool {
|
||||
|
||||
func Ext(path string) string {
|
||||
ext := stdpath.Ext(path)
|
||||
if strings.HasPrefix(ext, ".") {
|
||||
if len(ext) > 0 && ext[0] == '.' {
|
||||
ext = ext[1:]
|
||||
}
|
||||
return strings.ToLower(ext)
|
||||
|
||||
Reference in New Issue
Block a user