From e90aeb62d67a134e9e937917fa58bde1a32342d4 Mon Sep 17 00:00:00 2001 From: Daniel Lando Date: Tue, 12 May 2020 11:13:18 +0200 Subject: [PATCH] fix: allow empty node name/location #463 (#468) --- src/components/ControlPanel.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/ControlPanel.vue b/src/components/ControlPanel.vue index eccef451836..f9e156f8b05 100644 --- a/src/components/ControlPanel.vue +++ b/src/components/ControlPanel.vue @@ -535,14 +535,14 @@ export default { val || this.closeDialog() }, newName (val) { - var match = val ? val.match(/[a-zA-Z0-9_-]+/g) : [] + var match = val ? val.match(/[a-zA-Z0-9_-]+/g) : [val] this.nameError = match[0] !== val ? 'Only a-zA-Z0-9_- chars are allowed' : null }, newLoc (val) { - var match = val ? val.match(/[a-zA-Z0-9_-]+/g) : [] + var match = val ? val.match(/[a-zA-Z0-9_-]+/g) : [val] this.locError = match[0] !== val ? 'Only a-zA-Z0-9_- chars are allowed'