mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-30 13:14:22 +01:00
fix: use regexTarget for extend config (#1536)
* fix: use regexTarget for extend config * fix: add keywords from base and extended rule into global keywords list * docs: add an example to extend default rules * chore: update project URL references
This commit is contained in:
1 parent
a0f2f4671c
commit
a971a324fa
6 files changed
+27
-10
No files matched your search
@@ -145,6 +145,7 @@ func TestTranslate(t *testing.T) {
|
||||
Regexes: []*regexp.Regexp{
|
||||
regexp.MustCompile(`foo.+bar`),
|
||||
},
|
||||
RegexTarget: "line",
|
||||
Paths: []*regexp.Regexp{
|
||||
regexp.MustCompile(`ignore\.xaml`),
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user