diff --git a/regexes.yaml b/regexes.yaml index 51fd6a7f..ae4fee2f 100644 --- a/regexes.yaml +++ b/regexes.yaml @@ -470,7 +470,7 @@ user_agent_parsers: family_replacement: 'Chrome Mobile WebView' - regex: '(CrMo)/(\d+)\.(\d+)\.(\d+)\.(\d+)' family_replacement: 'Chrome Mobile' - - regex: '(CriOS)/(\d+)\.(\d+)\.(\d+)\.(\d+)' + - regex: '(CriOS)/(\d+)(?:\.(\d+)|)(?:\.(\d+)|)(?:\.(\d+)|)' family_replacement: 'Chrome Mobile iOS' - regex: '(Chrome)/(\d+)\.(\d+)\.(\d+)\.(\d+) Mobile(?:[ /]|$)' family_replacement: 'Chrome Mobile' diff --git a/tests/test_ua.yaml b/tests/test_ua.yaml index 1aa47902..d87d17be 100644 --- a/tests/test_ua.yaml +++ b/tests/test_ua.yaml @@ -8705,3 +8705,9 @@ test_cases: major: '108' minor: patch: + + - user_agent_string: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_5) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/102 Version/11.1.1 Safari/605.1.15' + family: 'Chrome Mobile iOS' + major: '102' + minor: + patch: