hercules-ci/gitignore.nix

Invalid regular expression for the gitignore pattern `*.*\~`

Opened this issue · 3 comments

When I have *.*\~ as an entry in .gitignore, The library produces the following error:

error: invalid regular expression '(^|.*/)[^/]*\.[^/]*\~'

This has been tested on the latest commit of gitignore.nix on master.

Just to be sure that it's not #40, did you update all references to the gitignore library? A dependency may reference an old version that didn't fix #40 yet.

I don't think you need the \ before ~.

I am using a pinned version of gitignore.nix directly, so it should be in latest version already. Specifically, commit c4662e662462e7bf3c2a968483478a665d00e717.

Anyway this is not a big issue, as I simply removed the offending line in .gitignore. I just thought of reporting this issue so that you can be made aware of this.