Skip to content

Commit

Permalink
Merge pull request #4 from nokeeo/hyphenGitHubBug
Browse files Browse the repository at this point in the history
Hypen in GtHub Repo URL
  • Loading branch information
nokeeo authored Feb 4, 2017
2 parents 47244d6 + 553579a commit 20a1280
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sourceHandlers/gitHub.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const SourceHandler = require('./sourceHandler');
const baseUrl = 'https://api.github.com/';
const userAgent = 'SoftwareCitationCore';

const urlRegex = /^github\.com\/(\w+)\/(\w+)/;
const urlRegex = /^github\.com\/([\w,\-]+)\/([\w,\-]+)/;

/*
* Creates and sends a request for the GitHub API.
Expand Down

0 comments on commit 20a1280

Please sign in to comment.