C'est un pAPI.

This commit is contained in:
MarcEricMartel
2022-11-05 07:55:09 -07:00
parent 0b7b9689b1
commit 4608cb5de8
5 changed files with 230 additions and 9 deletions

View File

@@ -16,7 +16,7 @@ public class AddressModel {
[Required, MinLength(4), MaxLength(30)]
public string Country { get; set; }
// Source pour regex: https://stackoverflow.com/questions/15774555/efficient-regex-for-canadian-postal-code-function
//[Required, RegularExpression(@"/^[ABCEGHJ-NPRSTVXY]\d[ABCEGHJ-NPRSTV-Z][ -]?\d[ABCEGHJ-NPRSTV-Z]\d$/i")]
//[Required, RegularExpression(@"/^[ABCEGHJ-NPRSTVXY]\d[ABCEGHJ-NPRSTV-Z][ -]?\d[ABCEGHJ-NPRSTV-Z]\d$/i")] TODO: REGEX
public string PostalCode { get; set; }
public AddressModel() { }