Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

248 B
Raw Blame
/**
 * Normalize text for comparison: trim whitespace, optionally lowercase
 */
export const normalize = (text: string, caseSensitive = false): string => {
  const trimmed = text.trim();
  return caseSensitive ? trimmed : trimmed.toLowerCase();
};