📅  最后修改于: 2022-03-11 15:04:18.753000             🧑  作者: Mango
validPattern = "^[a-zA-Z0-9]{10}$"; // alphanumeric exact 10 letters
this.projectForm = this.fb.group({
...
CIG: [null, [Validators.required, Validators.pattern(this.validPattern)],