mirror of
https://github.com/anomalyco/opencode.git
synced 2026-04-30 13:39:52 +00:00
small fixes
This commit is contained in:
parent
cfdd687216
commit
795b369219
7 changed files with 13 additions and 24 deletions
|
|
@ -347,7 +347,7 @@ func matchesSimpleGlob(pattern, path string) bool {
|
|||
|
||||
// Otherwise, check if any path component matches
|
||||
pathComponents := strings.Split(path, "/")
|
||||
for i := 0; i < len(pathComponents); i++ {
|
||||
for i := range pathComponents {
|
||||
subPath := strings.Join(pathComponents[i:], "/")
|
||||
if strings.HasSuffix(subPath, rest) {
|
||||
return true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue