Skip to content

Commit

Permalink
add % to regex
Browse files Browse the repository at this point in the history
  • Loading branch information
shrimalmadhur committed May 7, 2024
1 parent 06805a9 commit 33bac7e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion types/operator_metadata_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 33bac7e

Please sign in to comment.