import { REGEX_BETWEEN_PARENS } from '@directus/shared/constants' ; example export function applyFunctionToColumnName ( column ) { if ( column . includes ( '(' ) && column . includes ( ')' ) ) { const functionName = column . split ( '(' ) [ 0 ] ; const columnName = column . match ( REGEX_BETWEEN_PARENS ) ! [ 1 ] ; return `${ columnName }_${ functionName }` ; } else { return column ; } }