assaf / node-replay

When API testing slows you down: record and replay HTTP responses like a boss
http://documentup.com/assaf/node-replay
MIT License
522 stars 107 forks source link

add support for matching body with regular expression #145

Closed pirxpilot closed 6 years ago

pirxpilot commented 6 years ago

syntax is similar to that of the URL regular expression body needs to start with REGEXP keyword followed by javascript regular expression and - optionally - flags

for example:

body: REGEXP /request \d\d/i

would match Request 17 and request 06

assaf commented 6 years ago

Just published 2.3.0 with this change.