Skip to content

Commit

Permalink
Merge ec95adf into b0b99e7
Browse files Browse the repository at this point in the history
  • Loading branch information
dblythy authored May 25, 2023
2 parents b0b99e7 + ec95adf commit c37611a
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 c37611a

Please sign in to comment.