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