Skip to content

Commit 591ca61

Browse files
authored
GitHub: Fix repo detecting regexp
The regular expression detecting the repository account+name didn't allow accounts & repo names containing dashes because of matching both those parts against the /\w+/ regexp. It was updated to match everything except the slash. This made the release script fail for jQuery Color. Closes #97
1 parent 57a6303 commit 591ca61

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/github.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ module.exports = function( Release ) {
66
Release.define({
77
_githubApiPath: function( path ) {
88
var repoUrl = Release._packageUrl( "bugs" );
9-
var repo = repoUrl.match( /github\.com\/(\w+\/\w+)/ )[ 1 ];
9+
var repo = repoUrl.match( /github\.com\/([^/]+\/[^/]+)/ )[ 1 ];
1010
return "/repos/" + repo + "/" + path;
1111
},
1212

0 commit comments

Comments
 (0)