parsePath: fix project path parsing with trailing slash
This commit is contained in:
parent
359b40cc98
commit
1ffa1c5da5
|
@ -65,7 +65,7 @@ export const parsePath = (path: string): Path => {
|
|||
entityID: mobj[4],
|
||||
};
|
||||
}
|
||||
mobj = /^https?:\/\/([^/]+)\/([a-zA-Z\d-]+\/(?:[a-zA-Z\d-]+\/)*?[a-zA-Z\d-]+)(?:\?[^#]+)?(?:#.+)?$/.exec(
|
||||
mobj = /^https?:\/\/([^/]+)\/([a-zA-Z\d-]+\/(?:[a-zA-Z\d-]+\/)*?[a-zA-Z\d-]+)\/?(?:\?[^#]+)?(?:#.+)?$/.exec(
|
||||
path,
|
||||
);
|
||||
if (mobj) {
|
||||
|
|
Loading…
Reference in a new issue