From 4452868029753602a884068b63aa72c3dbba6805 Mon Sep 17 00:00:00 2001 From: JillianTo Date: Sun, 9 Mar 2025 20:53:46 -0400 Subject: [PATCH] When checking for subroutine, don't make .text have to be at the beginning of the line, this accounts for some weird HTML formatting --- Auto_Function_Parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Auto_Function_Parser.py b/Auto_Function_Parser.py index 7177b8e..2e584c2 100644 --- a/Auto_Function_Parser.py +++ b/Auto_Function_Parser.py @@ -103,7 +103,7 @@ with open(ida_html, 'r') as file: curr_addr = line[colon_idx+1:colon_idx+9] # Check if this is the start of a function - if re.search('^\.text:'+curr_addr+' sub_'+curr_addr+': *# [A-Z][A-Z][A-Z][A-Z] XREF:.*', line): + if re.search('.text:'+curr_addr+' sub_'+curr_addr+': *# [A-Z][A-Z][A-Z][A-Z] XREF:', line): # Save current address as integer curr_addr_int = int(curr_addr, 16)