Skip to content

Commit

Permalink
Merge pull request #388 from hillu/fix-regex-string
Browse files Browse the repository at this point in the history
Fix ambiguous string syntax for PEid parsing regexp
  • Loading branch information
erocarrera authored Jan 11, 2024
2 parents dcf780e + 22c958d commit b94ca95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion peutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def __init__(self, filename=None, data=None):
# RegExp to match a signature block
#
self.parse_sig = re.compile(
"\[(.*?)\]\s+?signature\s*=\s*(.*?)(\s+\?\?)*\s*ep_only\s*=\s*(\w+)(?:\s*section_start_only\s*=\s*(\w+)|)",
r"\[(.*?)\]\s+?signature\s*=\s*(.*?)(\s+\?\?)*\s*ep_only\s*=\s*(\w+)(?:\s*section_start_only\s*=\s*(\w+)|)",
re.S,
)

Expand Down

0 comments on commit b94ca95

Please sign in to comment.