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.

245 B
Raw Blame
const GITHUB_URL_REGEX = /^https?:\/\/github\.com\/[\w-]+\/[\w.-]+\/?$/;

// The submitted URL is trimmed, so a pasted URL with a trailing newline must pass.
export const isGithubRepoUrl = (value: string) => GITHUB_URL_REGEX.test(value.trim());