Skip to content

Commit

Permalink
fix(stream): valid team name
Browse files Browse the repository at this point in the history
  • Loading branch information
h13i32maru committed Mar 21, 2019
1 parent 76a68f2 commit 1b2c4c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Stream/SystemTeamStream.js
Expand Up @@ -37,7 +37,7 @@ export default class SystemTeamStream extends Stream {
const response = await client.requestImmediate('/user/teams');
return response.body.map((item)=> {
const org = item.organization.login;
const name = item.name.replace(/[/ ]/g, '-'); // if name includes '/', must replace to '-' in github
const name = item.name.replace(/[/ .]/g, '-'); // if name includes '/', must replace to '-' in github
return `${org}/${name}`;
});
}
Expand Down

0 comments on commit 1b2c4c2

Please sign in to comment.