Skip to content

Commit

Permalink
* Recognize user-agents even if only their major version matches a br…
Browse files Browse the repository at this point in the history
…owserscope entry
  • Loading branch information
joehewitt committed Sep 14, 2011
1 parent 076fc70 commit 18d48c5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions lib/hascan.js
Expand Up @@ -29,10 +29,14 @@ FeatureDB.prototype = {
// XXXjoe Rather than just taking the first major/minor version
// we find, we should pick the lowest number we can find because
// it has the greatest chance of being true for all versions after it.
var majorVersion = name + ' ' + v[0] + '.0';
var minorVersion = name + ' ' + v[0] + '.' + (v[1] || 0);
var majorTests;
if (!(minorVersion in db)) {
majorTests = db[minorVersion] = {};
if (!(majorVersion in db)) {
db[majorVersion] = majorTests;
}
}

var allTests = hasData.results[browserId].results;
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,7 +1,7 @@
{
"name": "hascan",
"description": "Build tools for has.js.",
"version": "0.0.5",
"version": "0.0.6",
"homepage": "http://github.com/joehewitt/hascan",
"repository": {
"type": "git",
Expand Down

0 comments on commit 18d48c5

Please sign in to comment.