Reverse regex change
This commit is contained in:
parent
a8cc29d986
commit
f7c251f011
|
@ -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()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue