Skip to content

Commit

Permalink
Merge pull request #78 from r3dp0int/md-parsing-fix
Browse files Browse the repository at this point in the history
Fix: #70 - problem with md variable parsing - thanks @r3dp0int
  • Loading branch information
v1k1ngfr authored Feb 26, 2024
2 parents 1b1f753 + 1b8549f commit bc84d58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arsenal/modules/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def get_args(self, cheat, gvars):
self.args = []
# Use a list of tuples here instead of dict in case
# the cmd has multiple args with the same name..
for arg_name in re.findall(r'<([^ <>:]+)>', cheat.command):
for arg_name in re.findall(r'<([^ <>]+)>', cheat.command):
if "|" in arg_name: # Format <name|default_value>
name, var = arg_name.split("|")[:2]
self.args.append([name, var])
Expand Down

0 comments on commit bc84d58

Please sign in to comment.