From 33bac7e3254a780748a29953f4840f4f2497a1c2 Mon Sep 17 00:00:00 2001 From: Madhur Shrimal Date: Tue, 7 May 2024 14:43:37 -0700 Subject: [PATCH] add % to regex --- types/operator_metadata_test.go | 2 +- utils/utils.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/types/operator_metadata_test.go b/types/operator_metadata_test.go index 23af3967..f648ce10 100644 --- a/types/operator_metadata_test.go +++ b/types/operator_metadata_test.go @@ -18,7 +18,7 @@ func TestOperatorMetadata(t *testing.T) { name: "Valid metadata with twitter.com url", metadata: OperatorMetadata{ Name: "Ethereum Utopia", - Description: "Madhur's first operator is best in this world+&~#$—", + Description: "Madhur's first operator is best in this world+&~#$—%", Logo: "https://goerli-operator-metadata.s3.amazonaws.com/eigenlayer.png", Twitter: "https://twitter.com/test", Website: "https://test.com", diff --git a/utils/utils.go b/utils/utils.go index e3c29413..3a78d720 100644 --- a/utils/utils.go +++ b/utils/utils.go @@ -26,7 +26,7 @@ import ( const ( PngMimeType = "image/png" - TextRegex = `^[a-zA-Z0-9 +.,;:?!'"\-_/()\[\]~&#$—]+$` + TextRegex = `^[a-zA-Z0-9 +.,;:?!'"\-_/()\[\]~&#$—%]+$` // Limit Http response to 1 MB httpResponseLimitBytes = 1 * 1024 * 1024