Skip to content

Commit

Permalink
use regex to validate phone numbers instead of [Phone]
Browse files Browse the repository at this point in the history
  • Loading branch information
jpdillingham committed Oct 3, 2018
1 parent 0f55eb0 commit c5467d6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion api/QCVOC.Api/Veterans/Data/DTO/VeteranEnrollRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public class VeteranEnrollRequest
/// Gets or sets the primary phone number of the Veteran.
/// </summary>
[Required]
[Phone]
[RegularExpression(@"^[1-9][0-9]{9}$")]
public string PrimaryPhone { get; set; }

/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion api/QCVOC.Api/Veterans/Data/DTO/VeteranUpdateRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public class VeteranUpdateRequest
/// Gets or sets the primary phone number of the Veteran.
/// </summary>
[Required]
[Phone]
[RegularExpression(@"^[1-9][0-9]{9}$")]
public string PrimaryPhone { get; set; }

/// <summary>
Expand Down

0 comments on commit c5467d6

Please sign in to comment.