in src/services/form-validation/FormValidationService.ts [181:198]
private normalizeSubmissionTextField(component: FormComponent, data: string): string {
const insertNumbersIntoMask = (numberValue: string, inputMask: string) => {
let index = -1;
return _.map(inputMask, (char) => {
if (isNaN(+char)) {
return char;
}
index += 1;
return numberValue[index] || '';
}).join('');
};
if (component.inputMask && component.phoneInput) {
return insertNumbersIntoMask(data, component.inputMask);
}
return data;
}