From 22a6534bb863ab332c729834bac85ef799ae1f07 Mon Sep 17 00:00:00 2001 From: Liviu-Mihail Concioiu Date: Fri, 20 Sep 2024 08:33:00 +0200 Subject: [PATCH] Improves detection for Chrome OS (#7840) --- 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 0845ccb860..5b52dbbbaa 100644 --- a/Tests/Parser/fixtures/oss.yml +++ b/Tests/Parser/fixtures/oss.yml @@ -5230,3 +5230,11 @@ version: 14816.131.0 platform: "" family: Chrome OS +- + user_agent: Dalvik/2.1.0 (Linux; U; Android 11; octopus Build/R119-15633.72.0) + os: + name: Chrome OS + short_name: COS + version: 15633.72.0 + platform: "" + family: Chrome OS diff --git a/regexes/oss.yml b/regexes/oss.yml index 817d0c8915..611e380ced 100644 --- a/regexes/oss.yml +++ b/regexes/oss.yml @@ -690,7 +690,7 @@ ########## # ChromeOS ########## -- regex: '(?:CrOS [a-z0-9_]+ |Chromebook.*Build/R\d+-)(\d+[\.\d]+)|Chromebook' +- regex: '(?:CrOS [a-z0-9_]+ |.*Build/R\d+-)(\d+[\.\d]+)|Chromebook' name: 'Chrome OS' version: '$1'