Skip to content

Commit

Permalink
Merge pull request #79 from bswinnerton/regex-to-support-secondary-se…
Browse files Browse the repository at this point in the history
…arch

Make secondary search great again
  • Loading branch information
bswinnerton authored Jul 26, 2017
2 parents c682e29 + 72a8d50 commit ea90302
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Contents/Scripts/bundle.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions Contents/Scripts/default.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,10 @@ class GitHubLB {

displayMenuItemFor(input) {
const GITHUB_LINK_FORMAT = /^https?:\/\/((www|gist|raw|developer)\.)?github\.(io|com)/;
const ISSUE_OR_PR_FORMAT = /^(.*)\/(.*)#(\d+)?\s*(.*)?$/;
const REPOSITORY_FORMAT = /^(.*)\/(.*)?\s*(.*)?$/;
const ISSUE_OR_PR_FORMAT = /^([\w-]+)\/([\w-]+)#(\d+)?\s*([\w-]+)?$/;
const REPOSITORY_FORMAT = /^([\w-]+)\/([\w-]+)?\s*([\w-]+)?$/;
const COMMIT_SHA_FORMAT = /^\b[0-9a-f]{5,40}\b$/;
const ACCOUNT_FORMAT = /^(.*)?\s*(.*)?$/;
const ACCOUNT_FORMAT = /^([\w-]+)\s*([\w-]+)?$/;

let match;

Expand Down

0 comments on commit ea90302

Please sign in to comment.