export const getUserAttributeRegex = () => /\$\{(?:lightdash|ld)\.(?:attribute|attributes|attr)\.(\w+)\}/g;
export const getIntrinsicUserAttributeRegex = () => /\$\{(?:lightdash|ld)\.user\.(\w+)\}/g;
export const hasLightdashUserContextVariableReference = (sql) => sql.match(getUserAttributeRegex()) !== null ||
    sql.match(getIntrinsicUserAttributeRegex()) !== null;
//# sourceMappingURL=lightdashSqlVariables.js.map