[port] update matcher

This commit is contained in:
wjqserver 2025-03-27 11:25:08 +08:00
parent b684227191
commit 70fb808acf

View file

@ -163,10 +163,13 @@ func EditorMatcher(rawPath string, cfg *config.Config) (bool, string, error) {
// 匹配文件扩展名是sh的rawPath
func MatcherShell(rawPath string) bool {
if strings.HasSuffix(rawPath, ".sh") {
return true
}
return false
/*
if strings.HasSuffix(rawPath, ".sh") {
return true
}
return false
*/
return strings.HasSuffix(rawPath, ".sh")
}
// LinkProcessor 是一个函数类型,用于处理提取到的链接。