[TLC-254] tidy up imports, regexes, mock data

This commit is contained in:
Kim Shepherd
2022-04-23 16:54:52 +12:00
parent e182378572
commit be6ea812bb
4 changed files with 4 additions and 24 deletions

View File

@@ -40,7 +40,7 @@ export abstract class FieldParser {
@Inject(PARSER_OPTIONS) protected parserOptions: ParserOptions
) {
// Replace . with _ in configured type field here, to make configuration more simple and user-friendly
this.typeField = environment.submission.typeBind.field.replace('\.', '_');
this.typeField = environment.submission.typeBind.field.replace(/\./g, '_');
}
public abstract modelFactory(fieldValue?: FormFieldMetadataValueObject, label?: boolean): any;