export function startCase()

in src/lib/utils.ts [28:36]


export function startCase(str: string) {
  return str
    .replace(/_/g, ' ')        // Replace underscores with spaces
    .replace(/-/g, ' ')        // Replace dashes with spaces
    .replace(/\s+/g, ' ')      // Normalize multiple spaces
    .trim()                    // Trim leading/trailing spaces
    .toLowerCase()             // Convert to lowercase
    .replace(/\b\w/g, char => char.toUpperCase()); // Capitalize the first letter of each word
}