Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3869cce

Browse files
committed
Minor code refactoring
1 parent 6afc9bf commit 3869cce

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/core/agent.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -637,11 +637,11 @@ def extractPayload(self, inpStr):
637637
retVal = None
638638

639639
if inpStr:
640-
regObj = getCompiledRegex("(?P<result>%s.*?%s)" % (PAYLOAD_DELIMITER, PAYLOAD_DELIMITER))
640+
regObj = getCompiledRegex("%s(?P<result>.*?)%s" % (PAYLOAD_DELIMITER, PAYLOAD_DELIMITER))
641641
match = regObj.search(inpStr)
642642

643643
if match:
644-
retVal = match.group("result")[1:-1]
644+
retVal = match.group("result")
645645

646646
return retVal
647647

0 commit comments

Comments
 (0)