diff --git a/src/adapters/github.js b/src/adapters/github.js index 8d59548..28e436b 100644 --- a/src/adapters/github.js +++ b/src/adapters/github.js @@ -125,9 +125,9 @@ class GitHub extends Adapter { return cb() } - // (username)/(reponame)[/(type)][.*][.(patch|diff)] - const match = window.location.pathname.match(/([^\/]+)\/([^\/]+)(?:\/([^\/]+))?(?:\/[^.]+)?(?:\.(patch|diff))?$/i) - if (!match || match[4]) { + // (username)/(reponame)[/(type)] + const match = window.location.pathname.match(/([^\/]+)\/([^\/]+)(?:\/([^\/]+))?/) + if (!match) { return cb() }