Skip to content

Commit

Permalink
Require non null/whitespace team names (#446)
Browse files Browse the repository at this point in the history
* Require non-empty team names
  • Loading branch information
morganbr authored May 16, 2019
1 parent 6b40cbf commit b8c22f1
Show file tree
Hide file tree
Showing 4 changed files with 1,078 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Data/DataModel/Team.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ public class Team
public int ID { get; set; }
[Required]
public virtual Event Event { get; set; }

[Required]
[RegularExpression("\\S+.*")]
public string Name { get; set; }

/// <summary>
Expand Down
Loading

0 comments on commit b8c22f1

Please sign in to comment.