Skip to content

Commit

Permalink
Merge pull request #89 from jerel/bugfix/invalid-regex
Browse files Browse the repository at this point in the history
Fixed regex that resulted in an invalid range in older browsers
  • Loading branch information
olivia committed Sep 4, 2015
2 parents 9fd8128 + a88ce02 commit 1e2bc3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions addon/lib/system/inflector.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 1e2bc3e

Please sign in to comment.