Skip to content
This repository has been archived by the owner on Feb 24, 2021. It is now read-only.

Commit

Permalink
fix: extended allowed charaters in name/loc #720
Browse files Browse the repository at this point in the history
  • Loading branch information
robertsLando committed Sep 14, 2020
1 parent 26d7df3 commit 9417560
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/ControlPanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -677,13 +677,13 @@ 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
Expand Down

0 comments on commit 9417560

Please sign in to comment.