FIX: SCSS variable regex wasn't working in JS

This commit is contained in:
Régis Hanol 2017-12-26 11:28:36 +01:00
parent 688f39447c
commit 27a368bb70
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ export default Ember.Controller.extend(ModalFunctionality, {
@computed('name')
nameValid(name) {
return name && name.match(/\A[a-z_][a-z0-9_-]*\z/i);
return name && name.match(/^[a-z_][a-z0-9_-]*$/i);
},
@observes('name')