FIX: SCSS variable regex wasn't working in JS
This commit is contained in:
parent
688f39447c
commit
27a368bb70
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue