Comparing version 2.2.1 to 2.2.2
@@ -41,5 +41,5 @@ | ||
if(ua.indexOf("samsung") !== -1){ | ||
return /\bsamsung(?:\-gt)?[ \-]([a-z0-9\-]+)/; | ||
return /\bsamsung(?:[ \-](?:sgh|gt|sm))?-([a-z0-9]+)/; | ||
}else{ | ||
return /\b(?:gt|sch)[ \-]([a-z0-9\-]+)/; | ||
return /\b(?:sgh|sch|gt|sm)-([a-z0-9]+)/; | ||
} | ||
@@ -46,0 +46,0 @@ }], |
{ | ||
"name": "detector", | ||
"version": "2.2.1", | ||
"version": "2.2.2", | ||
"description": "客户端信息识别模块", | ||
@@ -5,0 +5,0 @@ "homepage": "http://spmjs.io/docs/detector/", |
@@ -598,3 +598,3 @@ | ||
["Mozilla/5.0 (compatible; MSIE 9.0; Windows Phone OS 7.5; Trident/5.0; IEMobile/9.0; SAMSUNG SGH-i917)", { | ||
device: "samsung/sgh-i917", | ||
device: "samsung/i917", | ||
os: "wp/7.5", | ||
@@ -751,8 +751,2 @@ browser: "ie/9.0;9.0;o", | ||
}], | ||
["Mozilla/5.0 (Linux; U; Android 2.3.7; zh-cn; LG-P500 Build/GRI40) UC AppleWebKit/534.31 (KHTML%2C like Gecko) Mobile Safari/534.31", { | ||
device: "lg/p500", | ||
os: "android/2.3.7", | ||
browser: "uc/-1;-1;o", | ||
engine: (isBlinkEngine() ? "blink" : "webkit") + "/534.31;534.31;o" | ||
}], | ||
[{ | ||
@@ -768,2 +762,26 @@ "userAgent": "Mozilla/5.0 (Linux; U; Android 3.2; zh-cn; GT-P6800 Build/HTJ85B) UC AppleWebKit/534.31 (KHTML, like Gecko) Mobile Safari/534.31", | ||
}], | ||
["Mozilla/5.0 (Linux; U; Android 4.2.2; zh-cn; SM-T311 Build/JDQ39) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Safari/534.30", { | ||
device: "samsung/t311", | ||
os: "android/4.2.2", | ||
browser: "android/4.0;4.0;o", | ||
engine: (isBlinkEngine() ? "blink" : "webkit") + "/534.30;534.30;o" | ||
}], | ||
["Mozilla/5.0 (Linux; Android 4.4.2; zh-cn; SAMSUNG-SM-N9009 Build/KOT49H) AppleWebKit/537.36 (KHTML, like Gecko) Version/1.5 Chrome/28.0.1500.94 Mobile Safari/537.36", { | ||
device: "samsung/n9009", | ||
os: "android/4.4.2", | ||
browser: "chrome/28.0.1500.94;28.0.1500.94;o", | ||
engine: (isBlinkEngine() ? "blink" : "webkit") + "/537.36;537.36;o" | ||
}], | ||
["(Linux; Android 4.3; zh-cn; SAMSUNG SM-N9002 Build/JSS15J) AppleWebKit/537.36 (KHTML, like Gecko) Version/1.5 Chrome/28.0.1500.94 Mobile Safari/537.36", { | ||
device: "samsung/n9002", | ||
os: "android/4.3", | ||
browser: "chrome/28.0.1500.94;28.0.1500.94;o", | ||
engine: (isBlinkEngine() ? "blink" : "webkit") + "/537.36;537.36;o" | ||
}], | ||
["Mozilla/5.0 (Linux; U; Android 2.3.7; zh-cn; LG-P500 Build/GRI40) UC AppleWebKit/534.31 (KHTML%2C like Gecko) Mobile Safari/534.31", { | ||
device: "lg/p500", | ||
os: "android/2.3.7", | ||
browser: "uc/-1;-1;o", | ||
engine: (isBlinkEngine() ? "blink" : "webkit") + "/534.31;534.31;o" | ||
}], | ||
[{ | ||
@@ -770,0 +788,0 @@ "userAgent": "Mozilla/4.0 (compatible;Android;320x480)", |
Sorry, the diff of this file is not supported yet
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
103899
1871