diff --git a/regexes.yaml b/regexes.yaml index a8f8e097..f17f51f4 100644 --- a/regexes.yaml +++ b/regexes.yaml @@ -1022,10 +1022,9 @@ user_agent_parsers: # HTTrack crawler - regex: '\b(HTTrack) (\d+)\.(\d+)(?:[\.\-](\d+)|)' - # SerenityOS (https://serenityos.org) - # https://github.com/SerenityOS/serenity/blob/2e1bbcb0faeae92d7595b8e0b022a8cdcecca07e/Userland/Libraries/LibWeb/Loader/ResourceLoader.h#L27 - - regex: 'SerenityOS' - family_replacement: 'SerenityOS Browser' + # Ladybird Browser (https://ladybird.dev) + # https://github.com/SerenityOS/serenity/blob/8da9ff24e4e720b1e80a027f09c419ac9503f896/Userland/Libraries/LibWeb/Loader/ResourceLoader.h#L52 + - regex: 'LibWeb\+LibJS\/\d+\.\d+ (Ladybird)\/(\d+)\.(\d+)' os_parsers: ########## diff --git a/tests/test_os.yaml b/tests/test_os.yaml index eafd1092..5fbf17a7 100644 --- a/tests/test_os.yaml +++ b/tests/test_os.yaml @@ -3217,7 +3217,7 @@ test_cases: patch: patch_minor: - - user_agent_string: 'Mozilla/4.0 (SerenityOS; x86_64) LibWeb+LibJS (Not KHTML, nor Gecko) LibWeb' + - user_agent_string: 'Mozilla/5.0 (SerenityOS; x86_64) LibWeb+LibJS/1.0 Ladybird/1.0' family: 'SerenityOS' major: minor: diff --git a/tests/test_ua.yaml b/tests/test_ua.yaml index 2b2bee8c..2f57adb1 100644 --- a/tests/test_ua.yaml +++ b/tests/test_ua.yaml @@ -8664,10 +8664,10 @@ test_cases: minor: '20' patch: '1' - - user_agent_string: 'Mozilla/4.0 (SerenityOS; x86_64) LibWeb+LibJS (Not KHTML, nor Gecko) LibWeb' - family: 'SerenityOS Browser' - major: - minor: + - user_agent_string: 'Mozilla/5.0 (Linux; x86_64) LibWeb+LibJS/1.0 Ladybird/1.0' + family: 'Ladybird' + major: '1' + minor: '0' patch: - user_agent_string: 'surveyon/2.7.6 Mobile (Android: 11; MODEL:CPH2127; PRODUCT:CPH2127T2; MANUFACTURER:OPPO;)'