Comparing version 0.3.3 to 0.3.4
@@ -36,3 +36,3 @@ var KEY_LABEL = exports.KEY_LABEL = 'label', | ||
// GENERATED from dataset.yaml at Mon Sep 2 19:53:25 JST 2013 by tagomoris | ||
// GENERATED from dataset.yaml at Tue Sep 10 14:45:26 JST 2013 by tagomoris | ||
var obj; | ||
@@ -123,2 +123,5 @@ obj = {label:'MSIE', name:'Internet Explorer', type:'browser'}; | ||
DATASET[obj.label] = obj; | ||
obj = {label:'FirefoxOS', name:'Firefox OS', type:'os'}; | ||
obj['category'] = 'smartphone'; | ||
DATASET[obj.label] = obj; | ||
obj = {label:'BlackBerry', name:'BlackBerry', type:'os'}; | ||
@@ -125,0 +128,0 @@ obj['category'] = 'smartphone'; |
@@ -81,2 +81,10 @@ /* HEADER BEGIN */ | ||
if (result[dataset.KEY_NAME] && result[dataset.KEY_NAME] === dataset.get('Firefox')[dataset.KEY_NAME]) { | ||
// Firefox OS specific pattern | ||
// http://lawrencemandel.com/2012/07/27/decision-made-firefox-os-user-agent-string/ | ||
if (/^Mozilla\/[.0-9]+ \(Mobile;(.*;)? rv:[.0-9]+\) Gecko\/[.0-9]+ Firefox\/[.0-9]+$/.exec(ua)) { | ||
data = dataset.get('FirefoxOS'); | ||
} | ||
} | ||
if (!data) | ||
@@ -83,0 +91,0 @@ return false; |
{ | ||
"name": "woothee", | ||
"version": "0.3.3", | ||
"version": "0.3.4", | ||
"description": "User-Agent string parser (js implementation)", | ||
@@ -5,0 +5,0 @@ "main": "./release/woothee", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
85571
2295