From a33ca348de4b22a57a2390959a1ad007c4d4c49c Mon Sep 17 00:00:00 2001 From: Scott Addie Date: Tue, 5 Sep 2017 15:15:51 -0500 Subject: [PATCH] Add missing comma --- aspnetcore/data/ef-mvc/complex-data-model.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aspnetcore/data/ef-mvc/complex-data-model.md b/aspnetcore/data/ef-mvc/complex-data-model.md index 7fb31c7b4d6b..cde4e953b1bb 100644 --- a/aspnetcore/data/ef-mvc/complex-data-model.md +++ b/aspnetcore/data/ef-mvc/complex-data-model.md @@ -69,7 +69,7 @@ Suppose you want to ensure that users don't enter more than 50 characters for a [!code-csharp[Main](intro/samples/cu/Models/Student.cs?name=snippet_StringLength&highlight=10,12)] -The `StringLength` attribute won't prevent a user from entering white space for a name. You can use the `RegularExpression` attribute to apply restrictions to the input. For example the following code requires the first character to be upper case and the remaining characters to be alphabetical: +The `StringLength` attribute won't prevent a user from entering white space for a name. You can use the `RegularExpression` attribute to apply restrictions to the input. For example, the following code requires the first character to be upper case and the remaining characters to be alphabetical: ```csharp [RegularExpression(@"^[A-Z]+[a-zA-Z''-'\s]*$")]