From 1efa8db1b48754f527d187fab1bb33d8b411317a Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Tue, 13 Feb 2024 13:01:25 -0800 Subject: [PATCH] dongle id is only hex (#31426) * dongle id is only hex * so is the count old-commit-hash: e9071f11988f780063e74c01c11bbb2dd7448bee --- tools/lib/helpers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/lib/helpers.py b/tools/lib/helpers.py index 423f207b4d..5ec6c62339 100644 --- a/tools/lib/helpers.py +++ b/tools/lib/helpers.py @@ -5,9 +5,9 @@ TIME_FMT = "%Y-%m-%d--%H-%M-%S" # regex patterns class RE: - DONGLE_ID = r'(?P[a-z0-9]{16})' + DONGLE_ID = r'(?P[a-f0-9]{16})' TIMESTAMP = r'(?P[0-9]{4}-[0-9]{2}-[0-9]{2}--[0-9]{2}-[0-9]{2}-[0-9]{2})' - LOG_ID_V2 = r'(?P[a-z0-9]{8})--(?P[a-z0-9]{10})' + LOG_ID_V2 = r'(?P[a-f0-9]{8})--(?P[a-z0-9]{10})' LOG_ID = r'(?P(?:{}|{}))'.format(TIMESTAMP, LOG_ID_V2) ROUTE_NAME = r'(?P{}[|_/]{})'.format(DONGLE_ID, LOG_ID) SEGMENT_NAME = r'{}(?:--|/)(?P[0-9]+)'.format(ROUTE_NAME)