From d3fc9110959fc55b032f8b5c6841c01307919d28 Mon Sep 17 00:00:00 2001 From: Liviu-Mihail Concioiu Date: Fri, 13 Sep 2024 16:14:25 +0200 Subject: [PATCH] Improves version detection for iOS (#7824) --- Tests/Parser/fixtures/oss.yml | 8 ++++++++ regexes/oss.yml | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/Tests/Parser/fixtures/oss.yml b/Tests/Parser/fixtures/oss.yml index 9221cf5791..63e80c9d07 100644 --- a/Tests/Parser/fixtures/oss.yml +++ b/Tests/Parser/fixtures/oss.yml @@ -5206,3 +5206,11 @@ version: 15.4.1 platform: "" family: iOS +- + user_agent: AlMosafer/iPhone/17.0.3/8.10.0/1094/BDD0D3CE-EA37-4825-9E01-D26E91F38570/iPhone + os: + name: iOS + short_name: IOS + version: 17.0.3 + platform: "" + family: iOS diff --git a/regexes/oss.yml b/regexes/oss.yml index 8e4963458c..f56ae9d1b9 100644 --- a/regexes/oss.yml +++ b/regexes/oss.yml @@ -1466,7 +1466,7 @@ - regex: 'CFNetwork/459' version: '3.1' -- regex: '(?:iPhone|iPod_touch)/(\d+[\.\d]*) hw/' +- regex: '(?:iPhone|iPod_touch)/(\d+[\.\d]*)(?: hw)?/' name: 'iOS' version: '$1'