3 function getGithubUsernameFromGroup(group
) {
4 const type
= group
.sd
&& group
.sd
.type
;
5 const linkPath
= group
.sd
&& group
.sd
.linkPath
;
11 githubUsername
= linkPath
;
15 githubUsername
= linkPath
.split('/')[0];
18 return githubUsername
;
21 module
.exports
= getGithubUsernameFromGroup
;