Skip to content

Commit

Permalink
Merge pull request #381 from Tindtily/feature/add-wechat-ua
Browse files Browse the repository at this point in the history
add windowswechat ua
  • Loading branch information
lancedikson committed Dec 26, 2019
2 parents de5b4e0 + adde31f commit 366a9c4
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/parser-os.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export default [

/* Windows */
{
test: [/windows/i],
test: [/windows /i],
describe(ua) {
const version = Utils.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i, ua);
const versionName = Utils.getWindowsVersionName(version);
Expand Down
16 changes: 16 additions & 0 deletions test/acceptance/useragentstrings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2521,6 +2521,22 @@
engine:
name: "WebKit"
version: "537.51.1"
-
ua: "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_1) AppleWebKit/605.1.15 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36 MicroMessenger/6.5.2.501 NetType/WIFI WindowsWechat"
spec:
browser:
name: "WeChat"
version: "6.5.2.501"
os:
name: "macOS"
version: "10.15.1"
versionName: "Catalina"
platform:
type: "desktop"
vendor: "Apple"
engine:
name: "WebKit"
version: "605.1.15"
UC Browser:
-
ua: "Mozilla/5.0 (iPad; U; CPU OS 9 like Mac OS X; en-us; iPad4,4) AppleWebKit/534.46 (KHTML, like Gecko) UCBrowser/2.4.0.367 U3/1 Safari/7543.48.3"
Expand Down

0 comments on commit 366a9c4

Please sign in to comment.