Protection patterns now work however you write them.
Fixed
NEVER_TOUCHpatterns with capital letters protected nothing. Paths were lowercased before matching but patterns weren't, so'*/Application Support/Foo*'silently matched nothing. Matching now ignores case on both sides.- Other ways of writing a pattern were silently ignored too. In
NEVER_TOUCHandPROTECT, these now work:- a leading
~for your home folder:'~/Library/Application Support/Foo' - a trailing slash:
'~/.ssh/' - a bare folder name, which protects every folder of that name and its contents:
mkcert - a pattern for a folder's contents, which now also covers the folder itself:
'*/foo/*'protects…/foo
- a leading
PROTECTandLEFTOVER_IGNOREcared about case. Both now ignore it.
If you set any of these, run makleen scan --all to check that what you meant to protect no longer shows up.
Thanks to HOL on X for the question that found this.