From e6851a9b654aa35a227071cd03bacf164cd57e94 Mon Sep 17 00:00:00 2001 From: Arnaud Rebillout Date: Tue, 12 Sep 2023 14:36:41 +0700 Subject: [PATCH] Add Uptime-Kuma --- regexes.yaml | 3 +++ tests/test_ua.yaml | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/regexes.yaml b/regexes.yaml index a8f8e097..9e24f500 100644 --- a/regexes.yaml +++ b/regexes.yaml @@ -757,6 +757,9 @@ user_agent_parsers: - regex: 'compatible; monitis' family_replacement: 'Monitis' + # Uptime-Kuma https://uptime.kuma.pet/ + - regex: '(Uptime-Kuma)/(\d+)(?:\.(\d+)(?:\.(\d+)|)|)' + #### END MAIN CASES #### #### SPECIAL CASES #### diff --git a/tests/test_ua.yaml b/tests/test_ua.yaml index 2b2bee8c..2bc894e3 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: 'Uptime-Kuma/1.21.3' + family: 'Uptime-Kuma' + major: '1' + minor: '21' + patch: '3'