Skip to content

Commit

Permalink
fix: Rate limit feature is incompatible with Node 14 (#8578)
Browse files Browse the repository at this point in the history
  • Loading branch information
dblythy authored May 25, 2023
1 parent b0b99e7 commit f911f2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/middlewares.js
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ export const addRateLimit = (route, config, cloud) => {
},
});
}
let transformPath = route.requestPath.replaceAll('/*', '/(.*)');
let transformPath = route.requestPath.split('/*').join('/(.*)');
if (transformPath === '*') {
transformPath = '(.*)';
}
Expand Down

0 comments on commit f911f2c

Please sign in to comment.