mirror of
https://github.com/rclone/rclone.git
synced 2025-08-19 09:52:05 +02:00
filter: add options for glob to regexp without anchors and special path rules
This commit is contained in:
committed by
Nick Craig-Wood
parent
16d642825d
commit
731947f3ca
@@ -67,7 +67,7 @@ func (rs *rules) add(Include bool, re *regexp.Regexp) {
|
||||
|
||||
// Add adds a filter rule with include or exclude status indicated
|
||||
func (rs *rules) Add(Include bool, glob string) error {
|
||||
re, err := GlobToRegexp(glob, false /* f.Opt.IgnoreCase */)
|
||||
re, err := GlobPathToRegexp(glob, false /* f.Opt.IgnoreCase */)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
Reference in New Issue
Block a user