3 var getOrgNameFromTroupeName
= require('./get-org-name-from-troupe-name');
8 module
.exports
= function getOrgNameFromUri(uri
) {
9 //We do have the url /orgs/:orgName/rooms which we have to account for
10 if (/^orgs/.test(uri
)) {
11 return uri
.split('/')[1];
13 return getOrgNameFromTroupeName(uri
);