diff --git a/src/components/ControlPanel.vue b/src/components/ControlPanel.vue index 12e4b5502f3..a9b7d3c3203 100644 --- a/src/components/ControlPanel.vue +++ b/src/components/ControlPanel.vue @@ -677,13 +677,17 @@ export default { val || this.closeDialog() }, newName (val) { - var match = val ? val.match(/[a-zA-Z0-9_-]+/g) : [val] + var match = val + ? val.match(/[a-zA-Z\u00C0-\u024F\u1E00-\u1EFF0-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) : [val] + var match = val + ? val.match(/[a-zA-Z\u00C0-\u024F\u1E00-\u1EFF0-9_-]+/g) + : [val] this.locError = match[0] !== val ? 'Only a-zA-Z0-9_- chars are allowed' : null