From f7c251f011d40f5a84043ed577b2ca100ccc0909 Mon Sep 17 00:00:00 2001 From: Buu Nguyen Date: Mon, 18 Jul 2016 15:13:52 -0700 Subject: [PATCH] Reverse regex change --- src/adapters/github.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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() }