function replaceRegex(j, path) {
	const pattern = path && path.value && path.value.regex.pattern;
	const replacedPattern = replaceTalendUiLibs(pattern);
	if (pattern !== replacedPattern) {
		j(path).replaceWith(j.literal(new RegExp(replacedPattern)));
	}
}
/**
 * Replace AST regex path with a new path from replaced module names regex.
 * @param j
 * @param path
 */
Replace AST regex path with a new path from replaced module names regex.
@param j
@param path
Replace AST regex path with a new path from replaced module names regex . @param j @param path
function replaceRegex(j, path) {
	const pattern = path && path.value && path.value.regex.pattern;
	const replacedPattern = replaceTalendUiLibs(pattern);
	if (pattern !== replacedPattern) {
		j(path).replaceWith(j.literal(new RegExp(replacedPattern)));
	}
}
function replaceRegex ( j , path ) { const pattern = path && path . value && path . value . regex . pattern ; const replacedPattern = replaceTalendUiLibs ( pattern ) ; if ( pattern !== replacedPattern ) { j ( path ) . replaceWith ( j . literal ( new RegExp ( replacedPattern ) ) ) ; } }
Replace AST regex path with a new path from replaced module names regex.
Replace AST regex path with a new path from replaced module names regex .