Merge branch 'hotfix/21.56.9' into master
[gitter.git] / shared / get-org-name-from-troupe-name.js
blobf5bb2a044f949547b176687b94e14ac6497e2421
1 'use strict';
3 module.exports = function getOrgNameFromTroupeName(name) {
4 name = name || '';
5 if (name[0] === '/') {
6 name = name.substring(1);
8 return /\//.test(name) ? name.split('/')[0] : name;
9 };