Skip to content

Commit

Permalink
Add missing comma
Browse files Browse the repository at this point in the history
  • Loading branch information
scottaddie authored Sep 5, 2017
1 parent 1a9a3c7 commit a33ca34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aspnetcore/data/ef-mvc/complex-data-model.md
Original file line number Diff line number Diff line change
Expand Up @@ -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]*$")]
Expand Down

0 comments on commit a33ca34

Please sign in to comment.