makleen v0.2.1

@decoded-cipher/makleen · Release on GitHub

Protection patterns now work however you write them.

Fixed

  • NEVER_TOUCH patterns 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_TOUCH and PROTECT, 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
  • PROTECT and LEFTOVER_IGNORE cared 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.