Skip to content

Commit cc0c851

Browse files
Atryalexcanessa
authored andcommitted
Allow dot in Github slug (#204)
* Allow dot in Github slug Some repository contains a dot character in the slug: * https://github.com/ThoughtWorksInc/Binding.scala * Lazily match the repository name, in case of matching a `.git` for the slug
1 parent d6fdecc commit cc0c851

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/src/GitHubInfo.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ class GitHubInfo {
7373
*/
7474
_repo(callback) {
7575
return this._executeCommand('git config remote.origin.url', repo => {
76-
const repoPath = matchAll(/([\w-]+)\/([\w-]+)(\.git)?$/g, repo);
76+
const repoPath = matchAll(/([\w-\.]+)\/([\w-\.]+?)(\.git)?$/g, repo);
7777

7878
if (!repoPath[1]) {
7979
return Promise.reject('No repo found');

0 commit comments

Comments
 (0)