Skip to content
This repository has been archived by the owner on Jan 7, 2022. It is now read-only.

Commit

Permalink
Merge pull request #123 from zalando-nakadi/fix-regex
Browse files Browse the repository at this point in the history
Allow numbers after dots in event type name
  • Loading branch information
ferbncode authored Aug 5, 2020
2 parents b33dbba + fd5b7b9 commit 65f6ba9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/Pages/EventTypeCreate/Update.elm
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 65f6ba9

Please sign in to comment.