SierraSoftworks / github-backup

Automatically backup your GitHub repositories
MIT License
1 stars 0 forks source link

Add repository name pattern matching support #36

Open notheotherben opened 1 month ago

notheotherben commented 1 month ago

Currently the only way to match repository names in filters is using strict equality, startswith or endswith. Is would be awesome if we could define patterns that would then be used for filtering - something like x matches "a * sentence".

rakitaj commented 1 month ago

Am I reading this issue too literally and you're looking for a new matches operator that's similar to a glob pattern?

I pulled my work into a branch, rebased, and tomorrow will add evaluation of the pattern and cleanup some duplicated or near duplicated functions.

I attached my branch to this issue, it will be a fun one.

notheotherben commented 1 month ago

I think that's the idea, but if you've got any others you think will benefit from glob expression support then I'm more than happy to see us integrate them 👍 Looking forward to seeing what you come up with.