Skip to content

Commit

Permalink
Add Nextcloud android app
Browse files Browse the repository at this point in the history
  • Loading branch information
sclu1034 committed Nov 12, 2017
1 parent 631c5e4 commit 5aa11ba
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 0 deletions.
4 changes: 4 additions & 0 deletions regexes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -538,6 +538,10 @@ user_agent_parsers:
# Generic mirall client
- regex: '(mirall)/(\d+)\.(\d+)\.(\d+)'

# Nextcloud/Owncloud android client
- regex: '(ownCloud-android)/(\d+)\.(\d+)\.(\d+)'
family_replacement: 'Owncloud'

#### END MAIN CASES ####

#### SPECIAL CASES ####
Expand Down
5 changes: 5 additions & 0 deletions tests/test_device.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79999,3 +79999,8 @@ test_cases:
family: 'Gionee GN3003'
brand: 'Gionee'
model: 'GN3003'

- user_agent_string: 'Mozilla/5.0 (Android) ownCloud-android/2.0.0'
family: 'Generic Smartphone'
brand: 'Generic'
model: 'Smartphone'
7 changes: 7 additions & 0 deletions tests/test_os.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2425,3 +2425,10 @@ test_cases:
minor:
patch:
patch_minor:

- user_agent_string: 'Mozilla/5.0 (Android) ownCloud-android/2.0.0'
family: 'Android'
major:
minor:
patch:
patch_minor:
6 changes: 6 additions & 0 deletions tests/test_ua.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7329,3 +7329,9 @@ test_cases:
major:
minor:
patch:

- user_agent_string: 'Mozilla/5.0 (Android) ownCloud-android/2.0.0'
family: 'Owncloud'
major: '2'
minor: '0'
patch: '0'

0 comments on commit 5aa11ba

Please sign in to comment.