From ebf045013b3711c120421189108f3e51a3ada45a Mon Sep 17 00:00:00 2001 From: rozetko Date: Wed, 20 Mar 2019 15:41:27 +0300 Subject: [PATCH] Fix dashboard-id regexp --- server/src/migrations/0.3.2-beta.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/migrations/0.3.2-beta.ts b/server/src/migrations/0.3.2-beta.ts index a5766d3..7611d6c 100644 --- a/server/src/migrations/0.3.2-beta.ts +++ b/server/src/migrations/0.3.2-beta.ts @@ -10,7 +10,7 @@ export async function convertPanelUrlToPanelId() { return; } - const panelUrlRegex = /^(.+)\/d\/(\w+)\/.+panelId=(\d+)/; + const panelUrlRegex = /^(.+)\/d\/([^\/]+)\/.+panelId=(\d+)/; const newPanelUrlRegex = /^(.+)\/dashboard\/(\w+).+panelId=(\d+)/; const updatedAnalyticUnits = analyticUnits .map(analyticUnit => {