MCPcopy
hub / github.com/fastify/fastify / isValidGitHubReference

Function isValidGitHubReference

scripts/validate-ecosystem-links.js:27–29  ·  view source on GitHub ↗
(owner, repo)

Source from the content-addressed store, hash-verified

25}
26
27function isValidGitHubReference (owner, repo) {
28 return GITHUB_OWNER_REGEX.test(owner) && GITHUB_REPO_REGEX.test(repo)
29}
30
31function extractGitHubLinks (content) {
32 const regex = /\[([^\]]+)\]\((https:\/\/github\.com\/([^/]+)\/([^/)]+)[^)]*)\)/g

Callers 1

checkGitHubRepoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected