Skip to content

Commit

Permalink
fix: extended allowed charaters in name/loc #720 (#724)
Browse files Browse the repository at this point in the history
  • Loading branch information
robertsLando authored Sep 15, 2020
1 parent 17119ed commit 6a055e9
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/components/ControlPanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6a055e9

Please sign in to comment.