[UI] Fixed regex match for initSelectedPanel.

This commit is contained in:
Fabio Manganiello 2023-12-17 17:52:43 +01:00
parent 9d456281a6
commit b0feb8ed8f
Signed by: blacklight
GPG Key ID: D90FBA7F76362774
1 changed files with 1 additions and 1 deletions

View File

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