Skip to content

Commit

Permalink
fix golang ci lint
Browse files Browse the repository at this point in the history
Signed-off-by: James Strong <[email protected]>
  • Loading branch information
strongjz committed Jan 8, 2025
1 parent 8c1f4fe commit 05d0f3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/ingress/annotations/parser/validators.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ var (
// It is a risky operation
URLWithNginxVariableRegex = regexp.MustCompile("^[" + extendedAlphaNumeric + urlEnabledChars + "$]*$")
// MaliciousRegex defines chars that are known to inject RCE
MaliciousRegex = regexp.MustCompile("\r|\n")
MaliciousRegex = regexp.MustCompile(`\r|\n`)
)

// ValidateArrayOfServerName validates if all fields on a Server name annotation are
Expand Down

0 comments on commit 05d0f3d

Please sign in to comment.