Skip to content

Commit

Permalink
Add re_match with an index to mod_leak_functions.py
Browse files Browse the repository at this point in the history
Signed-off-by: Juanjo Alvarez <[email protected]>
  • Loading branch information
juanjux committed Sep 20, 2024
1 parent 0d44103 commit 9416be7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions scripts/iast/mod_leak_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,7 @@ def test_doit():
re_match = re.compile(r"(\w+)", re.IGNORECASE)
re_match_result = re_match.match(string21) # 1 propagation: 'HIROOT

string22 = re_match_result.group(0) # 1 propagation: '_HIROOT
# string22 = re_match_result.groups()[0]
string22 = re_match_result[0] # 1 propagation: '_HIROOT
tmp_str = "DDDD"
string23 = tmp_str + string22 # 1 propagation: 'DDDD_HIROOT

Expand Down

0 comments on commit 9416be7

Please sign in to comment.