Added support for regex validation

This commit is contained in:
Giuseppe Digilio
2018-07-06 14:20:09 +02:00
parent 7315337c64
commit ccb50f69d6
7 changed files with 33 additions and 11 deletions

View File

@@ -156,7 +156,7 @@ export class FormBuilderService extends DynamicFormService {
Object.keys(groupValue)
.forEach((key) => {
const normValue = normalizeValue(controlModel, groupValue[key], groupIndex);
if (normValue.hasValue()) {
if (isNotEmpty(normValue) && normValue.hasValue()) {
if (iterateResult.hasOwnProperty(key)) {
iterateResult[key].push(normValue);
} else {