diff --git a/.github/workflows/validate_interface_headers_incremental.py b/.github/workflows/validate_interface_headers_incremental.py index 4a4bc40f..ccfb6a3e 100644 --- a/.github/workflows/validate_interface_headers_incremental.py +++ b/.github/workflows/validate_interface_headers_incremental.py @@ -116,8 +116,9 @@ def validate_header(file_path, issues, ids_lines): break # Extract struct members - struct_member_pattern = re.compile(r'struct\s+(EXTERNAL\s+)?' + struct_name + r'\s*(:\s*(public|private|protected)\s+[\w:]+)?\s*{([\s\S]*?)\s*};') - struct_content = struct_member_pattern.search(content) + struct_member_pattern = re.compile(r'struct\s+(EXTERNAL\s+)?' + re.escape(struct_name) + r'\s*(?:[:]\s*(public|private|protected)\s+[\w:]+)?\s*{([\s\S]*?)\s*};', re.MULTILINE) + struct_match = struct_member_pattern.search(content) + struct_content =struct_match.group(3) if struct_content: struct_members = struct_content.group(4).split('\n') inside_multiline_comment = False diff --git a/apis/AppManager/IAppManager.h b/apis/AppManager/IAppManager.h index ea343ea1..99cc02eb 100644 --- a/apis/AppManager/IAppManager.h +++ b/apis/AppManager/IAppManager.h @@ -1,6 +1,6 @@ /* * If not stated otherwise in this file or this component's LICENSE file the - * following copyright and licenses apply: + * following copyright and li censes apply: * * Copyright 2024 RDK Management *