Fix dotgit regex again (#507)

* fix dotgit regex again

* Revert accidentally modified files

Co-authored-by: Seb Elttam <seb@elttam.com>
This commit is contained in:
seb-elttamandSeb Elttam authored and GitHub committed 2021-01-21 15:31:21 -05:00
1 parent 8be91eea5d
commit c0a9580a65
6 files changed
+51 -2

No files matched your search

+1 -1
View File
@@ -6,7 +6,7 @@ import (
// used for ignoring .git directories when the --no-git flag is set
// related issue: https://github.com/zricethezav/gitleaks/issues/486
const dotGit = `\.git/`
const dotGit = `/\.git/`
// AllowList is struct containing items that if encountered will allowlist
// a commit/line of code that would be considered a leak.