We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1474c8b commit a9f1b58Copy full SHA for a9f1b58
processor/file.go
@@ -66,7 +66,10 @@ func NewDirectoryWalker(output chan<- *FileJob) *DirectoryWalker {
66
output: output,
67
}
68
for _, exclude := range Exclude {
69
- directoryWalker.excludes = append(directoryWalker.excludes, regexp.MustCompile(exclude))
+ regexpResult, err := regexp.Compile(exclude)
70
+ if err == nil {
71
+ directoryWalker.excludes = append(directoryWalker.excludes, regexpResult)
72
+ }
73
74
75
directoryWalker.buffer = cuba.New(directoryWalker.Walk, cuba.NewStack())
0 commit comments