From b0feb8ed8f0b36c99c5714429c588b2bda8c2265 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Sun, 17 Dec 2023 17:52:43 +0100 Subject: [PATCH] [UI] Fixed regex match for initSelectedPanel. --- platypush/backend/http/webapp/src/views/Panel.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platypush/backend/http/webapp/src/views/Panel.vue b/platypush/backend/http/webapp/src/views/Panel.vue index c8497ef2ce..43a85d1523 100644 --- a/platypush/backend/http/webapp/src/views/Panel.vue +++ b/platypush/backend/http/webapp/src/views/Panel.vue @@ -58,7 +58,7 @@ export default { methods: { initSelectedPanel() { - const match = this.$route.hash.match('#?([a-zA-Z0-9.]+)[?]?(.*)') + const match = this.$route.hash.match(/^#?([a-zA-Z0-9_.]+)(\?(.+?))?/) const plugin = match ? match[1] : 'entities' if (plugin?.length) this.selectedPanel = plugin