mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
fix: fix bugs
This commit is contained in:
parent
02a5ed6354
commit
e47a9939b5
3 changed files with 4 additions and 3 deletions
|
|
@ -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;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue