Skip to content

Commit

Permalink
Improves version detection for iPadOS (matomo-org#7163)
Browse files Browse the repository at this point in the history
  • Loading branch information
liviuconcioiu authored Jul 6, 2022
1 parent bf4a396 commit aca051f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions regexes/oss.yml
Original file line number Diff line number Diff line change
Expand Up @@ -675,27 +675,27 @@
##########
# iPadOS (https://www.apple.com/ipados/)
##########
- regex: 'FBMD/iPad;.*FBSV/ ?(1[345]).(\d+[\.\d]*);'
- regex: 'FBMD/iPad;.*FBSV/ ?(1[3-6]).(\d+[\.\d]*);'
name: 'iPadOS'
version: '$1.$2'

- regex: 'iPad/(1[345]).(\d+[\.\d]*)'
- regex: 'iPad/(1[3-6]).(\d+[\.\d]*)'
name: 'iPadOS'
version: '$1.$2'

- regex: '^iPad(?:\d+[\,\d]*)/(1[345]).(\d+[\.\d]*)'
- regex: '^iPad(?:\d+[\,\d]*)/(1[3-6]).(\d+[\.\d]*)'
name: 'iPadOS'
version: '$1.$2'

- regex: 'iPad(?:; iOS|.+CPU OS) ((1[345])+(?:[_\.]\d+)*)'
- regex: 'iPad(?:; iOS|.+CPU OS) ((1[3-6])+(?:[_\.]\d+)*)'
name: 'iPadOS'
version: '$1'

- regex: 'iOS/(1[345]).(\d+[\.\d]*).+Apple/iPad'
- regex: 'iOS/(1[3-6]).(\d+[\.\d]*).+Apple/iPad'
name: 'iPadOS'
version: '$1.$2'

- regex: 'iPhone OS,(1[345]).(\d+[\.\d]*).+iPad'
- regex: 'iPhone OS,(1[3-6]).(\d+[\.\d]*).+iPad'
name: 'iPadOS'
version: '$1.$2'

Expand Down

0 comments on commit aca051f

Please sign in to comment.