parsePath: fix project path parsing with trailing slash

This commit is contained in:
Laura Liberda 2021-02-22 19:31:11 +01:00
parent 359b40cc98
commit 1ffa1c5da5

View file

@ -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) {