* 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