Skip to content

Commit ec95adf

Browse files
committed
Update middlewares.js
1 parent b0b99e7 commit ec95adf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/middlewares.js

+1-1
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)