Skip to content

Commit

Permalink
fix: allow spaces in name and location (#897)
Browse files Browse the repository at this point in the history
Fixes #877
  • Loading branch information
robertsLando authored Mar 16, 2021
1 parent b203e55 commit 18d6023
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/nodes-table/NodeDetails.vue
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ export default {
},
validateTopic (name) {
const match = name
? name.match(/[/a-zA-Z\u00C0-\u024F\u1E00-\u1EFF0-9_-]+/g)
? name.match(/[/a-zA-Z\u00C0-\u024F\u1E00-\u1EFF0-9 _-]+/g)
: [name]
return match[0] !== name ? 'Only a-zA-Z0-9_- chars are allowed' : null
Expand Down

0 comments on commit 18d6023

Please sign in to comment.