penambahan maxleght

This commit is contained in:
fuzi_fauzia committed 2024-07-11 11:45:53 +07:00
1 parent 4ae3b51530
commit 28067d1704
1 file changed
+1 -1
@@ -48,7 +48,7 @@ export class AddEditMasterBuildingComponent {
owner: ["", Validators.required],
address: ["", Validators.required],
phone: ["", [Validators.required, Validators.pattern(/^[0-9]{10,15}$/)]],
kwh: ["", [Validators.required, Validators.maxLength(20), Validators.pattern(/^[0-9]{10,15}$/)]],
kwh: ["", [Validators.required, Validators.maxLength(15), Validators.pattern(/^[0-9]{10,15}$/)]],
});
}