Skip to content
This repository has been archived by the owner on Jul 19, 2018. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Detect Windows NT 6.3 as Windows 8.1
  • Loading branch information
commenthol committed Mar 31, 2014
1 parent 4538d96 commit fae497e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
9 changes: 2 additions & 7 deletions regexes.yaml
Expand Up @@ -574,18 +574,13 @@ os_parsers:

- regex: '(Windows NT 6\.2; ARM;)'
os_replacement: 'Windows RT'

# is this a spoof or is nt 6.2 out and about in some capacity?
- regex: '(Windows NT 6\.2)'
os_replacement: 'Windows 8'

# I assume that windows 6.3 ARM codename windows 8.1 ARM is windows RT in release name
- regex: '(Windows NT 6\.3; ARM;)'
os_replacement: 'Windows RT'

# I assume that windows 6.3 codename windows 8.1 is windows 8 in release name
os_replacement: 'Windows RT 8.1'
- regex: '(Windows NT 6\.3)'
os_replacement: 'Windows 8'
os_replacement: 'Windows 8.1'

- regex: '(Windows NT 5\.0)'
os_replacement: 'Windows 2000'
Expand Down
4 changes: 2 additions & 2 deletions test_resources/test_user_agent_parser_os.yaml
Expand Up @@ -715,14 +715,14 @@ test_cases:
patch_minor:

- user_agent_string: 'Mozilla/5.0 (Windows NT 6.3; WOW64; Trident/7.0; rv:11.0) like Gecko'
family: 'Windows 8'
family: 'Windows 8.1'
major:
minor:
patch:
patch_minor:

- user_agent_string: 'Mozilla/5.0 (Windows NT 6.3; ARM; WOW64; Trident/7.0; rv:11.0) like Gecko'
family: 'Windows RT'
family: 'Windows RT 8.1'
major:
minor:
patch:
Expand Down

0 comments on commit fae497e

Please sign in to comment.