Python 3.5 support for strategy DNA parsing

This commit is contained in:
Kkevsterrr 2019-11-16 11:32:36 -05:00
parent 189f7db714
commit baf3e05fe1
1 changed files with 1 additions and 1 deletions

View File

@ -177,7 +177,7 @@ class ActionTree():
# it would parse out the trigger "TCP:flags:SA" and the tree as
# "-tamper{TCP:flags:corrupt}"
match = re.match(r"\[(\S*)\]-(\S*)|", string)
if not match or not match[0]:
if not match or not match.group(0):
logger.error("Could not identify trigger or tree")
return False