hercules-ci / gitignore.nix

Nix functions for filtering local git sources
The Unlicense
245 stars 20 forks source link

Invalid regular expression #40

Closed duog closed 4 years ago

duog commented 4 years ago

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

roberth commented 4 years ago

Fixed it. Thanks for reporting