Skip to content

Commit

Permalink
Update middlewares.js
Browse files Browse the repository at this point in the history
  • Loading branch information
dblythy committed May 25, 2023
1 parent b0b99e7 commit ec95adf
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 ec95adf

Please sign in to comment.