Skip to content

Commit

Permalink
fix: fix camelizedPathParams (#172)
Browse files Browse the repository at this point in the history
  • Loading branch information
fabien0102 committed May 10, 2023
1 parent b31ca2c commit 53c7fd0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -141,4 +141,4 @@ export const createOperationFetcherFnNodes = ({
* `pet/{pet_id}` -> `pet/{petId}`
*/
const camelizedPathParams = (url: string) =>
url.replace(/\{.*\}/g, (match) => `{${camel(match)}}`);
url.replace(/\{[\w\d\-_]*\}/g, (match) => `{${camel(match)}}`);

0 comments on commit 53c7fd0

Please sign in to comment.