diff --git a/flows/results.go b/flows/results.go index d2fc282f9..7a1684974 100644 --- a/flows/results.go +++ b/flows/results.go @@ -16,7 +16,7 @@ import ( ) func init() { - resultNameRegex := regexp.MustCompile(`^[a-zA-Z0-9\-_\s&:/@%?',]{1,64}$`) + resultNameRegex := regexp.MustCompile(`^.{1,64}$`) resultCategoryRegex := regexp.MustCompile(`^.{1,36}$`) utils.RegisterValidatorTag("result_name", diff --git a/flows/results_test.go b/flows/results_test.go index 6edd705e7..179739bd1 100644 --- a/flows/results_test.go +++ b/flows/results_test.go @@ -95,7 +95,7 @@ func TestResultNameAndCategoryValidation(t *testing.T) { obj := testStruct{ ValidName: "Color", - InvalidName: "#", + InvalidName: "1234567890123456789012345678901234567890123456789012345678901234567890", ValidCategory: "Blue", InvalidCategory: "1234567890123456789012345678901234567", }