Skip to content

The open alternative to Salesforce, designed for AI.

254 B
Raw Blame
import { RESERVED_METADATA_NAME_KEYWORDS } from '@/metadata';

export const addCustomSuffixIfIsReserved = (name: string): string => {
  if (!name) return name;

  return RESERVED_METADATA_NAME_KEYWORDS.includes(name)
    ? `${name}Custom`
    : name;
};