fix: fix bugs

This commit is contained in:
swve 2023-01-29 19:09:03 +01:00
parent 02a5ed6354
commit e47a9939b5
3 changed files with 4 additions and 3 deletions

View file

@ -10,6 +10,6 @@ export const getUriWithOrg = ( orgslug: string, path: string) => {
};
export const getOrgFromUri = (uri: any) => {
let org = uri.match(/\/org\/(.*?)\//)[1];
let org = uri.match(/\/org\/([\w]+)/)[1];
return org;
};