pkg: fix some typos in comment (#4440)

Signed-off-by: vetclippy <[email protected]>
This commit is contained in:
vetclippy
2025-09-04 14:09:39 +05:00
committed by GitHub
parent a66d9e75c2
commit ce7a092aa5
3 changed files with 3 additions and 3 deletions
@@ -38,7 +38,7 @@ var (
webhooksKey: "/v2/webhooks",
/*
TODO:
release piplelines: https://launchdarkly.com/docs/api/release-pipelines-beta/get-all-release-pipelines (Beta)
release pipelines: https://launchdarkly.com/docs/api/release-pipelines-beta/get-all-release-pipelines (Beta)
insight deployments: https://launchdarkly.com/docs/api/insights-deployments-beta/get-deployments (Beta)
delivery configuration: https://launchdarkly.com/docs/api/integration-delivery-configurations-beta/get-integration-delivery-configuration-by-environment (Beta)
metrics: https://launchdarkly.com/docs/api/metrics-beta/get-metric-groups (Beta)
+1 -1
View File
@@ -25,7 +25,7 @@ var (
apiKeyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"kontent"}) + common.BuildRegexJWT("30,34", "200,400", "40,43"))
envIDPat = regexp.MustCompile(detectors.PrefixRegex([]string{"kontent", "env"}) + common.UUIDPattern)
// API return this error when the environment does not exist or the api key does not have the persmission to access that environment
// API return this error when the environment does not exist or the api key does not have the permission to access that environment
envErr = "The specified API key does not provide the permissions required to access the environment"
)
@@ -69,7 +69,7 @@ func TestSatismeterWritekey_FromChunk(t *testing.T) {
s: Scanner{},
args: args{
ctx: context.Background(),
data: []byte(fmt.Sprintf("You can find a satismeterwritekey project %s satismeter writekey %s and satismeter token %s in here but not vaild", inactiveProjectID, inactiveWriteKey, inactiveToken)), // the secret would satisfy the regex but not pass validation,
data: []byte(fmt.Sprintf("You can find a satismeterwritekey project %s satismeter writekey %s and satismeter token %s in here but not valid", inactiveProjectID, inactiveWriteKey, inactiveToken)), // the secret would satisfy the regex but not pass validation,
verify: true,
},
want: []detectors.Result{