Skip to content

Commit

Permalink
fix for caniuse update
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanong committed Dec 5, 2014
1 parent f4628e0 commit e3a8e75
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/feature.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,10 @@ var caniuseBrowsers = {

function lowestOf(obj, browser, feature) {
// versions are listed in ascending order
var versions = Object.keys(obj).sort(function (a, b) {
var versions = Object.keys(obj).filter(function (version) {
if (~version.indexOf('-')) return true;
return semver.validRange(version);
}).sort(function (a, b) {
return semver.compare(semverify(a), semverify(b))
})

Expand Down

0 comments on commit e3a8e75

Please sign in to comment.