From e90664b383e476d25229a63b2717054076d1aad8 Mon Sep 17 00:00:00 2001 From: kyouk4n Date: Fri, 6 Dec 2024 16:25:52 +0800 Subject: [PATCH] fix: optional HarmonyOS version number --- regexes.yaml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/regexes.yaml b/regexes.yaml index 09467a1c..53f3e423 100644 --- a/regexes.yaml +++ b/regexes.yaml @@ -1916,11 +1916,7 @@ os_parsers: os_v3_replacement: '$3' # Huawei HarmonyOS - - regex: 'HarmonyOS\s?(\d*).?(\d*).?(\d*)' - os_replacement: 'Harmony' - os_v1_replacement: '$1' - os_v2_replacement: '$2' - os_v3_replacement: '$3' + - regex: '(HarmonyOS)\s?(\d+|)\.?(\d+|)\.?(\d+|)' device_parsers: