MCPcopy
hub / github.com/kashav/fsql / regexpExclude

Struct regexpExclude

query/excluder.go:16–19  ·  view source on GitHub ↗

regexpExclude uses regular expressions to tell if a file/path should be excluded.

Source from the content-addressed store, hash-verified

14// regexpExclude uses regular expressions to tell if a file/path should be
15// excluded.
16type regexpExclude struct {
17 exclusions []string
18 regex *regexp.Regexp
19}
20
21// ShouldExclude will return a boolean denoting whether or not the path should
22// be excluded based on the given slice of exclusions.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected