From 029605f637cecf6b0f842384ef7dbc22c6770cb1 Mon Sep 17 00:00:00 2001 From: Dastiw1 Date: Mon, 1 Mar 2021 13:13:07 +0600 Subject: [PATCH] Remove regexp from path Remove regexp from path in getPath method --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index acf4b4a..a6c572e 100644 --- a/src/index.ts +++ b/src/index.ts @@ -82,7 +82,7 @@ class VueBreadcrumbs implements PluginObject> { }, getPath(crumb: RouteRecord): string { let { path } = crumb; - + path = path.replace(/\((.*?)\)/, ''); for (const [key, value] of Object.entries(this.$route.params)) { path = path.replace(`:${key}`, value); }