Skip to content

Commit

Permalink
Allow logins to have hyphens
Browse files Browse the repository at this point in the history
  • Loading branch information
bswinnerton committed Jul 26, 2017
1 parent 4c99d1c commit 72a8d50
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 = /^(\w+)\/(\w+)#(\d+)?\s*(\w+)?$/;
const REPOSITORY_FORMAT = /^(\w+)\/(\w+)?\s*(\w+)?$/;
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 = /^(\w+)\s*(\w+)?$/;
const ACCOUNT_FORMAT = /^([\w-]+)\s*([\w-]+)?$/;

let match;

Expand Down

0 comments on commit 72a8d50

Please sign in to comment.