Skip to content

Instantly share code, notes, and snippets.

@mike-north
Created May 22, 2015 02:09
Show Gist options
  • Save mike-north/1aeca68459c375175769 to your computer and use it in GitHub Desktop.
Save mike-north/1aeca68459c375175769 to your computer and use it in GitHub Desktop.
Ember.js version string parsing
var emberParsingRegex = /^([0-9]+)\.([0-9]+)\.([0-9]+)(?:(?:\-(alpha|beta)\.([0-9]+)(?:\.([0-9]+))?)?)?(?:\+(canary))?(?:\.([0-9abcdef]+))?$/;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment