From c1a1bd9774f1da4e7432488ada8a82980207acb1 Mon Sep 17 00:00:00 2001 From: David Chalco <59750547+dachalco@users.noreply.github.com> Date: Tue, 4 May 2021 10:27:09 -0700 Subject: [PATCH] fix versioning of header checks (#587) --- .github/scripts/versioning.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/scripts/versioning.py b/.github/scripts/versioning.py index 55a2715bc8..5e2fe45496 100755 --- a/.github/scripts/versioning.py +++ b/.github/scripts/versioning.py @@ -104,9 +104,9 @@ def extract_version_number_from_file(file_path): match = re.search('\s*\*\s*(Amazon FreeRTOS.*V(.*))', content, re.MULTILINE) # Is it a kernel file? if match is None: - match = re.search('\s*\*\s*(FreeRTOS Kernel.*V(.*))', content, re.MULTILINE) + match = re.search('\s*\*\s*(FreeRTOS Kernel.*V([0-9]*\.[0-9]*\.[0-9]*))', content, re.MULTILINE) if match is None: - match = re.search('\s*\*\s*(FreeRTOS V(.*\..*))', content, re.MULTILINE) + match = re.search('\s*\*\s*(FreeRTOS V([0-9]*\.[0-9]*))', content, re.MULTILINE) # Is it s FreeRTOS+TCP file? if match is None: match = re.search('\s*\*\s*(FreeRTOS\+TCP.*V(.*))', content, re.MULTILINE)