repo_description: Hey is a decentralized and permissionless social media app built with Lens Protocol 🌿
repo_topics: blockchain crypto dapp graphql hacktoberfest lens-protocol nextjs react social-media tailwindcss turborepo typescript vitest wagmi web3
code: const MIN_LENGTH = 25;
  const MAX_LENGTH = 160;
  
  const normalizeDescription = (
    text: string | null | undefined,
    fallback: string
  ): string => {
    const trimmed = (text ?? "").trim();
    const base = trimmed.length >= MIN_LENGTH ? trimmed : fallback.trim();
    return base.slice(0, MAX_LENGTH);
  };
  
  export default normalizeDescription;
  