hercules-ci/gitignore.nix

Invalid regular expression

duog opened this issue · 1 comments

duog commented

Hi,
I've run into a problem with a .gitignore including the line:

*- [Bb]ackup ([0-9]).rdl

(I believe this comes from some boilerplate generated by visual studio)

Running gitignoreSource on this .gitignore gives

error: invalid regular expression '(^|.*/)[^/]*- [Bb]ackup ([0-9]\)\.rdl', at /nix/store/an98s6751qmwp25jzdzna5bsnz77cgrr-source/rules.nix:50:37

reproduction here: https://github.com/duog/gitignore.nix-testcase

Fixed it. Thanks for reporting