Open zanminkian opened 2 months ago
- Handle trailing whitespaces:
'a '
(one space) should not match'a '
(two spaces).'a \ '
matches `'a '
Quote from https://github.com/kaelzhang/node-ignore/tree/master?tab=readme-ov-file#why-another-ignore. It seems spaces are useful.
I'm not pretty sure about issue 1 so I updated this PR.
This PR fix 2 issues:
Issue 1: trim gitignore file contentIssue 2: pattern starts with
./
or./
should not be ignored