Skip to content

Commit 53c7fd0

Browse files
authored
fix: fix camelizedPathParams (#172)
1 parent b31ca2c commit 53c7fd0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/typescript/src/core/createOperationFetcherFnNodes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,4 +141,4 @@ export const createOperationFetcherFnNodes = ({
141141
* `pet/{pet_id}` -> `pet/{petId}`
142142
*/
143143
const camelizedPathParams = (url: string) =>
144-
url.replace(/\{.*\}/g, (match) => `{${camel(match)}}`);
144+
url.replace(/\{[\w\d\-_]*\}/g, (match) => `{${camel(match)}}`);

0 commit comments

Comments
 (0)