Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed regex that resulted in an invalid range in older browsers #89

Merged
merged 1 commit into from
Sep 4, 2015

Conversation

jerel
Copy link
Contributor

@jerel jerel commented Sep 4, 2015

The regex [_/-\s] will cause error "Invalid range in character set" because it creates a range between the / and the \s characters. The hyphen needs to be escaped or moved to the end. Problem was observed in IE8, Firefox 14, and 24.

Related: http://stackoverflow.com/questions/23496973/invalid-range-in-character-class-regex-firefox

The regex [_/-\s] is invalid as it creates a range between the
/ and the \s characters. The hyphen needs to be escaped or at
the end.
olivia added a commit that referenced this pull request Sep 4, 2015
Fixed regex that resulted in an invalid range in older browsers
@olivia olivia merged commit 1e2bc3e into emberjs:master Sep 4, 2015
@olivia
Copy link
Contributor

olivia commented Sep 4, 2015

Thanks Jerel! Merged into master.

@fivetanley
Copy link
Member

@OFbriggs can you cut a new release so we can pull this into Ember Data 1.13?

@olivia
Copy link
Contributor

olivia commented Sep 4, 2015

Released with v1.9.2 @fivetanley

jerel added a commit to jerel/ember-cli-mirage that referenced this pull request Sep 4, 2015
bmac pushed a commit to emberjs/data that referenced this pull request Sep 10, 2015
…ded fix for older browsers (see: emberjs/ember-inflector#89 ).

(cherry picked from commit 9632531)

Conflicts:
	package.json

(cherry picked from commit dfd05f3)
bmac pushed a commit to emberjs/data that referenced this pull request Sep 10, 2015
…ded fix for older browsers (see: emberjs/ember-inflector#89 ).

(cherry picked from commit 9632531)

Conflicts:
	package.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants