mirror of
https://github.com/WJQSERVER-STUDIO/ghproxy.git
synced 2026-02-03 00:01:10 +08:00
[port] update matcher
This commit is contained in:
parent
b684227191
commit
70fb808acf
1 changed files with 7 additions and 4 deletions
|
|
@ -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 是一个函数类型,用于处理提取到的链接。
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue