Skip to content

Commit f3f3453

Browse files
authored
Merge pull request #2 from jaredbrook/develop
Use search instead of match for body regex
2 parents ff95660 + caa60cf commit f3f3453

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

handler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ def execute(self):
150150

151151
if self.bodyregexmatch is not None:
152152
regex = re.compile(self.bodyregexmatch)
153-
value = 1 if regex.match(response_body) else 0
153+
value = 1 if regex.search(response_body) else 0
154154
result['ResponseBodyRegexMatch'] = value
155155

156156
if self.statuscodematch is not None:

0 commit comments

Comments
 (0)