Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid regular expression for the gitignore pattern *.*\~ #49

Open
soareschen opened this issue Nov 13, 2020 · 3 comments
Open

Invalid regular expression for the gitignore pattern *.*\~ #49

soareschen opened this issue Nov 13, 2020 · 3 comments

Comments

@soareschen
Copy link

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.

@roberth
Copy link
Member

roberth commented Nov 13, 2020

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.

@roberth
Copy link
Member

roberth commented Nov 13, 2020

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

@soareschen
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants