From 949f4e1d4ad6ec49b6a8add87b0af2058c4b1c9c Mon Sep 17 00:00:00 2001 From: Marcelo Shima Date: Mon, 23 Sep 2024 07:32:47 -0300 Subject: [PATCH] Update prepare-field.ts --- generators/base-application/support/prepare-field.ts | 5 ----- 1 file changed, 5 deletions(-) diff --git a/generators/base-application/support/prepare-field.ts b/generators/base-application/support/prepare-field.ts index d11a21b30069..08016af37592 100644 --- a/generators/base-application/support/prepare-field.ts +++ b/generators/base-application/support/prepare-field.ts @@ -343,11 +343,6 @@ function prepareCommonFieldForTemplates(entityWithConfig: Entity, field: Field, generator.log.warn(`${field.fieldName} pattern is not valid: ${field.fieldValidateRulesPattern}. Skipping generating fake data. `); return undefined; } - try { - return faker.helpers.fromRegExp(field.fieldValidateRulesPattern!); - } catch { - // if faker fails to generate data, we will try using RandExp. - } const re = faker.createRandexp(field.fieldValidateRulesPattern!); if (!re) { generator.log.warn(`Error creating generator for pattern ${field.fieldValidateRulesPattern}`);