diff --git a/addon/lib/system/inflector.js b/addon/lib/system/inflector.js index 1d8d61c..bf7efe0 100644 --- a/addon/lib/system/inflector.js +++ b/addon/lib/system/inflector.js @@ -3,8 +3,8 @@ import Ember from 'ember'; var capitalize = Ember.String.capitalize; var BLANK_REGEX = /^\s*$/; -var LAST_WORD_DASHED_REGEX = /([\w/-]+[_/-\s])([a-z\d]+$)/; -var LAST_WORD_CAMELIZED_REGEX = /([\w/-\s]+)([A-Z][a-z\d]*$)/; +var LAST_WORD_DASHED_REGEX = /([\w/-]+[_/\s-])([a-z\d]+$)/; +var LAST_WORD_CAMELIZED_REGEX = /([\w/\s-]+)([A-Z][a-z\d]*$)/; var CAMELIZED_REGEX = /[A-Z][a-z\d]*$/; function loadUncountable(rules, uncountable) {