mirror of
https://github.com/WJQSERVER-STUDIO/ghproxy.git
synced 2026-02-03 08:11:11 +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
|
// 匹配文件扩展名是sh的rawPath
|
||||||
func MatcherShell(rawPath string) bool {
|
func MatcherShell(rawPath string) bool {
|
||||||
|
/*
|
||||||
if strings.HasSuffix(rawPath, ".sh") {
|
if strings.HasSuffix(rawPath, ".sh") {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
return false
|
return false
|
||||||
|
*/
|
||||||
|
return strings.HasSuffix(rawPath, ".sh")
|
||||||
}
|
}
|
||||||
|
|
||||||
// LinkProcessor 是一个函数类型,用于处理提取到的链接。
|
// LinkProcessor 是一个函数类型,用于处理提取到的链接。
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue