diff --git a/.github/scripts/versioning.py b/.github/scripts/versioning.py index 906925942..4c34ae72f 100755 --- a/.github/scripts/versioning.py +++ b/.github/scripts/versioning.py @@ -104,7 +104,7 @@ 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?([0-9]*\.[0-9]*\.[0-9]*|))', content, re.MULTILINE) + match = re.search('\s*\*\s*(FreeRTOS Kernel.*V?([0-9]*\.[0-9]*\.[0-9]*( LTS Patch \d*)?|))', content, re.MULTILINE) if match is None: match = re.search('\s*\*\s*(FreeRTOS V?([0-9]*\.[0-9]*|))', content, re.MULTILINE) # Is it s FreeRTOS+TCP file?