Reverse regex change

This commit is contained in:
Buu Nguyen 2016-07-18 15:13:52 -07:00
parent a8cc29d986
commit f7c251f011
1 changed files with 3 additions and 3 deletions

View File

@ -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()
}