Skip to content

Commit

Permalink
fix: single line
Browse files Browse the repository at this point in the history
  • Loading branch information
nicola-smartive committed Jun 18, 2024
1 parent 5972b85 commit e67f9e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ app.all('*', (req, res) => {
for (const route of routes) {
if (
new RegExp(`^${route.request.match}$`).test(req.url) &&
(!route.request.bodyMatch || new RegExp(`^${route.request.bodyMatch}$`, 'm').test(stringifiedBody))
(!route.request.bodyMatch || new RegExp(`^${route.request.bodyMatch}$`, 's').test(stringifiedBody))
) {
console.log(`Call to ${req.url} matched ${route.request.match} ${route.request.bodyMatch || ''}`);
const response = route.response;
Expand Down

0 comments on commit e67f9e7

Please sign in to comment.