There was an error while loading. Please reload this page.
2 parents b0b99e7 + ec95adf commit c37611aCopy full SHA for c37611a
1 file changed
src/middlewares.js
@@ -512,7 +512,7 @@ export const addRateLimit = (route, config, cloud) => {
512
},
513
});
514
}
515
- let transformPath = route.requestPath.replaceAll('/*', '/(.*)');
+ let transformPath = route.requestPath.split('/*').join('/(.*)');
516
if (transformPath === '*') {
517
transformPath = '(.*)';
518
0 commit comments