Skip to content

Commit c37611a

Browse files
authored
Merge ec95adf into b0b99e7
2 parents b0b99e7 + ec95adf commit c37611a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/middlewares.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ export const addRateLimit = (route, config, cloud) => {
512512
},
513513
});
514514
}
515-
let transformPath = route.requestPath.replaceAll('/*', '/(.*)');
515+
let transformPath = route.requestPath.split('/*').join('/(.*)');
516516
if (transformPath === '*') {
517517
transformPath = '(.*)';
518518
}

0 commit comments

Comments
 (0)