mirror of
https://github.com/docker/compose.git
synced 2025-07-07 13:54:34 +02:00
fix
Signed-off-by: Suleiman Dibirov <idsulik@gmail.com>
This commit is contained in:
parent
2ac081b4c4
commit
73bfbab54b
@ -134,7 +134,7 @@ func NewDockerPatternMatcher(repoRoot string, patterns []string) (*dockerPathMat
|
|||||||
if hasAllPattern {
|
if hasAllPattern {
|
||||||
// Remove all non-exclusion patterns (those that don't start with '!')
|
// Remove all non-exclusion patterns (those that don't start with '!')
|
||||||
patterns = slices.DeleteFunc(patterns, func(p string) bool {
|
patterns = slices.DeleteFunc(patterns, func(p string) bool {
|
||||||
return len(p) > 0 && p[0] != '!' // Only keep exclusion patterns
|
return p != "" && p[0] != '!' // Only keep exclusion patterns
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user