-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mistake in regex? #2
Comments
Regarding the first "/": Regarding the last ".*":
The folders are tested first, and their children are only listed and tested if the parent wasn't excluded, which implies that all of the following exclusions do the same, since nothing inside folder/ will be tested.
And keep in mind that Duplicacy uses the MatchString method, that searches for a sub-string in any position. https://golang.org/pkg/regexp/#example_MatchString |
Regarding the first "/": Regarding the last ".*" What I want to do is ignore the content of I wrote (i think) in the file a comment for my reason to ignore that (and opened a bug for duplicacy here: gilbertchen/duplicacy#309): there's some weird skype file which can't be backed up for some reason and duplicacy just stops the backup (so that no data loss occurs). |
Thanks for both of your answers. Yes, I suspected thar the trailing In any case, I now think the first slash shouldn't be there. As regards the MatchString method: I'm not a programmer, so if someone could explain if/how needs to be considered when composing filter rules? |
There's a much more detailed discussion in gilbertchen/duplicacy#355, you could want t look there. From that discussion i might get to change a lot of the regexes (again :D). |
todo: check where it would make sense to remove the first slash as per @tophee's problem |
Include Slack notification option
Are you sure that this will work:
duplicacy-utils/filters
Line 169 in 834473e
Shouldn't it be
(and likewise all the other exclusions in the same format)?
The text was updated successfully, but these errors were encountered: