Skip to content

Commit

Permalink
Merge pull request ua-parser#506 from cherio/develop-httrack
Browse files Browse the repository at this point in the history
Add HTTrack crawler regex
  • Loading branch information
commenthol authored Oct 9, 2021
2 parents 08745ed + 4fbfa68 commit ab71505
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions regexes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -980,6 +980,9 @@ user_agent_parsers:
- regex: '^(ViaFree|Viafree)-(?:tvOS-)?[A-Z]{2}/(\d+)\.(\d+)\.(\d+)'
family_replacement: 'ViaFree'

# HTTrack crawler
- regex: '\b(HTTrack) (\d+)\.(\d+)(?:[\.\-](\d+)|)'

os_parsers:
##########
# HbbTV vendors
Expand Down
6 changes: 6 additions & 0 deletions tests/test_ua.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8568,3 +8568,9 @@ test_cases:
major: '1'
minor: '0'
patch:

- user_agent_string: 'Mozilla/4.5 (compatible; HTTrack 3.0x; Windows 98)'
family: 'HTTrack'
major: '3'
minor: '0'
patch:

0 comments on commit ab71505

Please sign in to comment.