diff --git a/regexes.yaml b/regexes.yaml index 14412307..14c71a57 100644 --- a/regexes.yaml +++ b/regexes.yaml @@ -1308,6 +1308,10 @@ os_parsers: ########## - regex: '(Tizen)[/ ](\d+)\.(\d+)' + # Chrome and Edge on iOS with desktop mode contains Mac OS X, so it must be before any Mac OS check + - regex: 'Intel Mac OS X.+(CriOS|EdgiOS)/\d+' + os_replacement: 'iOS' + ########## # Mac OS # @ref: http://en.wikipedia.org/wiki/Mac_OS_X#Versions diff --git a/tests/test_os.yaml b/tests/test_os.yaml index 5fbf17a7..f66658e6 100644 --- a/tests/test_os.yaml +++ b/tests/test_os.yaml @@ -2762,6 +2762,20 @@ test_cases: patch: '3' patch_minor: + - 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: 'iOS' + major: + minor: + patch: + patch_minor: + + - user_agent_string: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/605.1.15 (KHTML, like Gecko) EdgiOS/125 Version/13.0.3 Safari/605.1.15' + family: 'iOS' + major: + minor: + patch: + patch_minor: + - user_agent_string: 'Mozilla/5.0 (iPhone; CPU IPhone OS 9_2_1 Like Mac OS X) AppleWebKit/601.1.46 (KHTML, Like Gecko) Mobile/13D15 [FBAN/FBIOS;FBAV/52.0.0.46.157;FBBV/26424168;FBDV/iPhone6,2;FBMD/iPhone;FBSN/iPhone OS;FBSV/9.2.1;FBSS/2; FBCR/Globe;FBID/phone;FBLC/en_US;FBOP/5]' family: 'iOS' major: '9'