From 572cea6814e15a7363c589b43552fc50ac446155 Mon Sep 17 00:00:00 2001 From: Rowan Seymour Date: Thu, 12 Dec 2024 14:05:04 +0000 Subject: [PATCH] Completely relax requirements for result names --- flows/results.go | 2 +- flows/results_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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", }