Fix proper names capitalization (#907)

Co-authored-by: Craig Smith <5344211-craigmsmith@users.noreply.gitlab.com>
This commit is contained in:
Craig SmithandCraig Smith authored and GitHub committed 2022-07-05 08:26:41 -05:00
1 parent 6210a7e832
commit f4ddeda433
5 files changed
+10 -10

No files matched your search

+1 -1
View File
@@ -8,7 +8,7 @@ import (
func AdobeClientID() *config.Rule {
// define rule
r := config.Rule{
Description: "Adobe Client ID (Oauth Web)",
Description: "Adobe Client ID (OAuth Web)",
RuleID: "adobe-client-id",
Regex: generateSemiGenericRegex([]string{"adobe"}, hex("32")),
SecretGroup: 1,
+2 -2
View File
@@ -8,7 +8,7 @@ import (
func BitBucketClientID() *config.Rule {
// define rule
r := config.Rule{
Description: "BitBucket Client ID",
Description: "Bitbucket Client ID",
RuleID: "bitbucket-client-id",
Regex: generateSemiGenericRegex([]string{"bitbucket"}, alphaNumeric("32")),
SecretGroup: 1,
@@ -25,7 +25,7 @@ func BitBucketClientID() *config.Rule {
func BitBucketClientSecret() *config.Rule {
// define rule
r := config.Rule{
Description: "BitBucket Client Secret",
Description: "Bitbucket Client Secret",
RuleID: "bitbucket-client-secret",
Regex: generateSemiGenericRegex([]string{"bitbucket"}, alphaNumericExtended("64")),
SecretGroup: 1,
+1 -1
View File
@@ -8,7 +8,7 @@ import (
func Facebook() *config.Rule {
// define rule
r := config.Rule{
Description: "facebook",
Description: "Facebook",
RuleID: "facebook",
Regex: generateSemiGenericRegex([]string{"facebook"}, hex("32")),
SecretGroup: 1,
+1 -1
View File
@@ -10,7 +10,7 @@ import (
func Gitlab() *config.Rule {
// define rule
r := config.Rule{
Description: "Gitlab Personal Access Token",
Description: "GitLab Personal Access Token",
RuleID: "gitlab-pat",
Regex: regexp.MustCompile(`glpat-[0-9a-zA-Z\-\_]{20}`),
Keywords: []string{"glpat-"},
+5 -5
View File
@@ -30,7 +30,7 @@ keywords = [
]
[[rules]]
description = "Adobe Client ID (Oauth Web)"
description = "Adobe Client ID (OAuth Web)"
id = "adobe-client-id"
regex = '''(?i)(?:adobe)(?:[0-9a-z\-_\t .]{0,20})(?:[\s|']|[\s|"]){0,3}(?:=|>|:=|\|\|:|<=|=>|:)(?:'|\"|\s|=|\x60){0,5}([a-f0-9]{32})(?:['|\"|\n|\r|\s|\x60]|$)'''
secretGroup = 1
@@ -124,7 +124,7 @@ keywords = [
]
[[rules]]
description = "BitBucket Client ID"
description = "Bitbucket Client ID"
id = "bitbucket-client-id"
regex = '''(?i)(?:bitbucket)(?:[0-9a-z\-_\t .]{0,20})(?:[\s|']|[\s|"]){0,3}(?:=|>|:=|\|\|:|<=|=>|:)(?:'|\"|\s|=|\x60){0,5}([a-z0-9]{32})(?:['|\"|\n|\r|\s|\x60]|$)'''
secretGroup = 1
@@ -133,7 +133,7 @@ keywords = [
]
[[rules]]
description = "BitBucket Client Secret"
description = "Bitbucket Client Secret"
id = "bitbucket-client-secret"
regex = '''(?i)(?:bitbucket)(?:[0-9a-z\-_\t .]{0,20})(?:[\s|']|[\s|"]){0,3}(?:=|>|:=|\|\|:|<=|=>|:)(?:'|\"|\s|=|\x60){0,5}([a-z0-9=_\-]{64})(?:['|\"|\n|\r|\s|\x60]|$)'''
secretGroup = 1
@@ -349,7 +349,7 @@ keywords = [
]
[[rules]]
description = "facebook"
description = "Facebook"
id = "facebook"
regex = '''(?i)(?:facebook)(?:[0-9a-z\-_\t .]{0,20})(?:[\s|']|[\s|"]){0,3}(?:=|>|:=|\|\|:|<=|=>|:)(?:'|\"|\s|=|\x60){0,5}([a-f0-9]{32})(?:['|\"|\n|\r|\s|\x60]|$)'''
secretGroup = 1
@@ -494,7 +494,7 @@ keywords = [
]
[[rules]]
description = "Gitlab Personal Access Token"
description = "GitLab Personal Access Token"
id = "gitlab-pat"
regex = '''glpat-[0-9a-zA-Z\-\_]{20}'''
keywords = [