| 1 | package mainscip-go gomod github.com/cespare/reflex . `github.com/cespare/reflex`/ |
| 2 | |
| 3 | import "regexpscip-go gomod github.com/golang/go/src go1.24.0 regexp/" |
| 4 | |
| 5 | var defaultExcludesscip-go gomod github.com/cespare/reflex . `github.com/cespare/reflex`/defaultExcludes. = []string{ |
| 6 | // VCS dirs |
| 7 | `(^|/)\.jj/`, |
| 8 | `(^|/)\.git/`, |
| 9 | `(^|/)\.hg/`, |
| 10 | // Vim |
| 11 | `~$`, |
| 12 | `\.swp$`, |
| 13 | // Emacs |
| 14 | `\.#`, |
| 15 | `(^|/)#.*#$`, |
| 16 | // OS X |
| 17 | `(^|/)\.DS_Store$`, |
| 18 | } |
| 19 | |
| 20 | var defaultExcludeMatcherscip-go gomod github.com/cespare/reflex . `github.com/cespare/reflex`/defaultExcludeMatcher. multiMatcherscip-go gomod github.com/cespare/reflex . `github.com/cespare/reflex`/multiMatcher# |
| 21 | |
| 22 | func initscip-go gomod github.com/cespare/reflex . `github.com/cespare/reflex`/init().() { |
| 23 | for _, pattern := range defaultExcludesscip-go gomod github.com/cespare/reflex . `github.com/cespare/reflex`/defaultExcludes. { |
| 24 | m := newRegexMatcherscip-go gomod github.com/cespare/reflex . `github.com/cespare/reflex`/newRegexMatcher().(regexpscip-go gomod github.com/golang/go/src go1.24.0 regexp/.MustCompilescip-go gomod github.com/golang/go/src go1.24.0 regexp/MustCompile().(pattern), true) |
| 25 | defaultExcludeMatcherscip-go gomod github.com/cespare/reflex . `github.com/cespare/reflex`/defaultExcludeMatcher. = append(defaultExcludeMatcherscip-go gomod github.com/cespare/reflex . `github.com/cespare/reflex`/defaultExcludeMatcher., m) |
| 26 | } |
| 27 | } |