diff --git a/regexes.yaml b/regexes.yaml index a8f8e097..b4e891cf 100644 --- a/regexes.yaml +++ b/regexes.yaml @@ -388,7 +388,7 @@ user_agent_parsers: # Edge Mobile - regex: 'Windows Phone .{0,200}(Edge)/(\d+)\.(\d+)' family_replacement: 'Edge Mobile' - - regex: '(EdgiOS|EdgA)/(\d+)\.(\d+)\.(\d+)(?:\.(\d+)|)' + - regex: '(EdgiOS|EdgA)\/(\d+)(?:\.(\d+)|)(?:\.(\d+)|)(?:\.(\d+)|)' family_replacement: 'Edge Mobile' # Oculus Browser, should go before Samsung Internet diff --git a/tests/test_ua.yaml b/tests/test_ua.yaml index 2b2bee8c..97203bd3 100644 --- a/tests/test_ua.yaml +++ b/tests/test_ua.yaml @@ -8681,3 +8681,9 @@ test_cases: major: '3' minor: '2' patch: '1' + + - user_agent_string: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/605.1.15 (KHTML, like Gecko) EdgiOS/108 Version/13.0.3 Safari/605.1.15' + family: 'Edge Mobile' + major: '108' + minor: + patch: \ No newline at end of file