Skip to content

Commit 8e55e3a

Browse files
committed
github url regex
1 parent 7fa4723 commit 8e55e3a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

github.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ module.exports = function github( options ){
112112
function cmd_parse( args, done ) {
113113
var seneca = this
114114

115-
var m = /[\/:]([^\/]+?)\/([^\/]+?)(\.git)*$/.exec(args.giturl)
115+
var m = /[\/:]([^\/:]+?)[\/:]([^\/]+?)(\.git)*$/.exec(args.giturl)
116116
if( m ) {
117117
return done( null, { user:m[1], repo:m[2] })
118118
}

0 commit comments

Comments
 (0)