From ee19cfcd637f0d00051afdd65cb7349b96ee1f0d Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Fri, 5 Nov 2021 16:16:25 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=B9=20Remove=20unused=20path=20segment?= =?UTF-8?q?s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/utils/ParsePath.ts | 8 -------- 1 file changed, 8 deletions(-) diff --git a/frontend/src/utils/ParsePath.ts b/frontend/src/utils/ParsePath.ts index 91a5f23..8ed18db 100644 --- a/frontend/src/utils/ParsePath.ts +++ b/frontend/src/utils/ParsePath.ts @@ -54,8 +54,6 @@ export function parsePath(path: string): ParsedPath { } result.instance = path.match(/[/]i[/]([^/]+)/)?.[1] - result.userId = path.match(/[/]u[/]([0-9]+)/)?.[1] - result.userName = path.match(/[/]u[/]([A-Za-z0-9_-]+)/)?.[1] result.researchGroup = path.match(/[/]g[/]([A-Za-z0-9_-]+)/)?.[1] result.researchProject = path.match(/[/]p[/]([A-Za-z0-9_-]+)/)?.[1] result.notebook = path.match(/[/]n[/]([A-Za-z0-9_-]+)/)?.[1] @@ -64,12 +62,6 @@ export function parsePath(path: string): ParsedPath { if(result.instance) { result.count += 1 } - if(result.userId) { - result.count += 1 - } - if(result.userName) { - result.count += 1 - } if(result.researchGroup) { result.count += 1 }