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.

258 B
Raw Blame
export const isGitHubUrl = (value?: string) => {
  if (!value) return false;

  try {
    const hostname = new URL(value).hostname.toLowerCase();

    return hostname === 'github.com' || hostname.endsWith('.github.com');
  } catch {
    return false;
  }
};