Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/danielroe/unsight.dev. Detect duplicate GitHub issues, areas of concern and more across related rep unsight.dev
Something went wrong. Try again.
318 B · 11 lines
TypeScript
at web-ext
123456789101112/** * Check if the url is a github issue page * * @param url * @returns true if the url is a github issue page, false otherwise */export function isGithubIssuePage(url: string): boolean { const githubIssueRegex = /^https?:\/\/github\.com\/[\w.-]+\/[\w.-]+\/issues\/\d+$/
return githubIssueRegex.test(url)}