From 70fb808acfbb535568bf79dafe7f6ec7d0c70601 Mon Sep 17 00:00:00 2001 From: wjqserver <114663932+WJQSERVER@users.noreply.github.com> Date: Thu, 27 Mar 2025 11:25:08 +0800 Subject: [PATCH] [port] update matcher --- proxy/match.go | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/proxy/match.go b/proxy/match.go index d2e5d23..7d90077 100644 --- a/proxy/match.go +++ b/proxy/match.go @@ -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 是一个函数类型,用于处理提取到的链接。