From 5b66a1eff1e1cc5ca84f39b30c9e34e7499e4b32 Mon Sep 17 00:00:00 2001 From: jmackay2 Date: Sat, 9 Nov 2024 22:15:41 -0500 Subject: [PATCH] Fix generate component regex escape sequence --- src/lib/component_information/generate_component_general.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/component_information/generate_component_general.py b/src/lib/component_information/generate_component_general.py index 35445f1b888b..3561cae46d8f 100755 --- a/src/lib/component_information/generate_component_general.py +++ b/src/lib/component_information/generate_component_general.py @@ -20,7 +20,7 @@ version_dir = '' if version_file is not None: for line in open(version_file, "r"): - version_search = re.search('PX4_GIT_TAG_OR_BRANCH_NAME\s+"(.+)"', line) + version_search = re.search(r'PX4_GIT_TAG_OR_BRANCH_NAME\s+"(.+)"', line) if version_search: version_dir = version_search.group(1) break