Reverse regex change
This commit is contained in:
parent
a8cc29d986
commit
f7c251f011
|
@ -125,9 +125,9 @@ class GitHub extends Adapter {
|
||||||
return cb()
|
return cb()
|
||||||
}
|
}
|
||||||
|
|
||||||
// (username)/(reponame)[/(type)][.*][.(patch|diff)]
|
// (username)/(reponame)[/(type)]
|
||||||
const match = window.location.pathname.match(/([^\/]+)\/([^\/]+)(?:\/([^\/]+))?(?:\/[^.]+)?(?:\.(patch|diff))?$/i)
|
const match = window.location.pathname.match(/([^\/]+)\/([^\/]+)(?:\/([^\/]+))?/)
|
||||||
if (!match || match[4]) {
|
if (!match) {
|
||||||
return cb()
|
return cb()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue