From e5eda5c7e44ded03d6498286d1de144e9e81547f Mon Sep 17 00:00:00 2001 From: Ildar Nurislamov Date: Wed, 27 Dec 2023 17:00:06 +0400 Subject: [PATCH] ingest: length and symbol restriction for track event names --- ingest/router.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ingest/router.go b/ingest/router.go index 115f4d9..1900c8f 100644 --- a/ingest/router.go +++ b/ingest/router.go @@ -36,7 +36,7 @@ var eventTypesDict = map[string]string{ var eventTypesSet = utils.NewSet("page", "identify", "track", "group", "alias", "screen") -var notAllowedEventNameChars = regexp.MustCompile("[^a-zA-Z0-9_ :'/,-]+") +var notAllowedEventNameChars = regexp.MustCompile("[^a-zA-Z0-9_ :'/,!-]+") type Router struct { *appbase.Router