From be50c80c72993ca80729bb380e059f1183f4ce43 Mon Sep 17 00:00:00 2001 From: Alexander Gil Date: Mon, 6 Jan 2025 11:04:21 +0100 Subject: [PATCH] Annotations: Allow `@` in URLs. --- internal/ingress/annotations/parser/validators.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/ingress/annotations/parser/validators.go b/internal/ingress/annotations/parser/validators.go index 31524508f5..b61671848d 100644 --- a/internal/ingress/annotations/parser/validators.go +++ b/internal/ingress/annotations/parser/validators.go @@ -44,7 +44,7 @@ var ( alphaNumericChars = `\-\.\_\~a-zA-Z0-9\/:` extendedAlphaNumeric = alphaNumericChars + ", " regexEnabledChars = regexp.QuoteMeta(`^$[](){}*+?|&=\`) - urlEnabledChars = regexp.QuoteMeta(`,:?&=`) + urlEnabledChars = regexp.QuoteMeta(`@,:?&=`) ) // IsValidRegex checks if the tested string can be used as a regex, but without any weird character.