Glob matching for file paths, used to exclude files from backups.
Globs are compiled by the glob-to-regexp package with extended syntax:
* (any run of characters within one path segment), ** (any run of
characters, crossing directory separators), ? (a single character) and
[abc] character classes. Matching is case-insensitive. Brace alternation
is not available here because the comma is the list separator.
I/O-free, so it is unit-testable without a database.
Glob matching for file paths, used to exclude files from backups.
Globs are compiled by the glob-to-regexp package with extended syntax:
*(any run of characters within one path segment),**(any run of characters, crossing directory separators),?(a single character) and[abc]character classes. Matching is case-insensitive. Brace alternation is not available here because the comma is the list separator.I/O-free, so it is unit-testable without a database.