When checking for subroutine, don't make .text have to be at the beginning of the line, this accounts for some weird HTML formatting

This commit is contained in:
JillianTo 2025-03-09 20:53:46 -04:00
parent 9a4dc311c7
commit 4452868029

View File

@ -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+' </span><span class="c[0-9]*">sub_'+curr_addr+'</span><span class="c[0-9]*">: *</span><span class="c[0-9]*"># [A-Z][A-Z][A-Z][A-Z] XREF:.*', line):
if re.search('.text:'+curr_addr+' </span><span class="c[0-9]*">sub_'+curr_addr+'</span><span class="c[0-9]*">: *</span><span class="c[0-9]*"># [A-Z][A-Z][A-Z][A-Z] XREF:', line):
# Save current address as integer
curr_addr_int = int(curr_addr, 16)