export default function prepareField(entityWithConfig, field) {
    if (field.fieldValidateRulesPatternAngular === undefined) {
        field.fieldValidateRulesPatternAngular = field.fieldValidateRulesPattern
            ? field.fieldValidateRulesPattern.replace(/"/g, '&#34;')
            : field.fieldValidateRulesPattern;
    }
    if (field.fieldValidateRulesPatternReact === undefined) {
        field.fieldValidateRulesPatternReact = field.fieldValidateRulesPattern
            ? field.fieldValidateRulesPattern.replace(/'/g, "\\'")
            : field.fieldValidateRulesPattern;
    }
}
