Skip to content

Commit

Permalink
Fix semgrep 'ci.aws-in-func-name'.
Browse files Browse the repository at this point in the history
  • Loading branch information
ewbankkit committed Mar 14, 2024
1 parent c1b883d commit 56129a9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/types/aws_account_id.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
)

// IsAWSAccountID returns whether or not the specified string is a valid AWS account ID.
func IsAWSAccountID(s string) bool {
func IsAWSAccountID(s string) bool { // nosemgrep:ci.aws-in-func-name
// https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-identifiers.html.
return regexache.MustCompile(`^\d{12}$`).MatchString(s)
}
2 changes: 1 addition & 1 deletion internal/types/aws_account_id_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ package types

import "testing"

func TestIsAWSAccountID(t *testing.T) {
func TestIsAWSAccountID(t *testing.T) { // nosemgrep:ci.aws-in-func-name
t.Parallel()

for _, tc := range []struct {
Expand Down

0 comments on commit 56129a9

Please sign in to comment.