forked from platypush/platypush
[UI] Fixed regex match for initSelectedPanel.
This commit is contained in:
parent
9d456281a6
commit
b0feb8ed8f
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue