Need to slashify the excluded paths before checking with regex.

master v0.2.2
Zed A. Shaw 1 month ago
parent bd06b9cae3
commit 138e6e3160
  1. 1
      main.go

@ -190,6 +190,7 @@ func SamePath(a string, b string) bool {
}
func ExcludedPath(fp string) bool {
fp = filepath.ToSlash(fp)
is_layout := fp == config.Settings.Layout
is_excluded := slices.ContainsFunc(config.Settings.Exclude, func (s string) bool {
matches, err := regexp.MatchString(s, fp)

Loading…
Cancel
Save