From fd5b7b90bde636328d65b8f2ca7fda17fb840505 Mon Sep 17 00:00:00 2001 From: Suyash Garg Date: Wed, 5 Aug 2020 16:40:19 +0200 Subject: [PATCH] Allow numbers after dots in event type name --- client/Pages/EventTypeCreate/Update.elm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/Pages/EventTypeCreate/Update.elm b/client/Pages/EventTypeCreate/Update.elm index 2922fb5..7da0a14 100644 --- a/client/Pages/EventTypeCreate/Update.elm +++ b/client/Pages/EventTypeCreate/Update.elm @@ -338,7 +338,7 @@ checkNameFormat model dict = model.values |> getValue FieldName |> String.trim pattern = - Helpers.Regex.fromString "^[a-zA-Z][-0-9a-zA-Z_]*(\\.[a-zA-Z][-0-9a-zA-Z_]*)*$" + Helpers.Regex.fromString "^[a-zA-Z][-0-9a-zA-Z_]*(\\.[0-9a-zA-Z][-0-9a-zA-Z_]*)*$" in if Regex.contains pattern name then dict