Skip to content

Commit 7808245

Browse files
committed
refactor: rename a parameter name
1 parent c6aa282 commit 7808245

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cli.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ const convertPathPlaceholders = (path) => path.replace(/:([^\/]+)/g, '{$1}');
101101

102102
// "name_ru" => "nameRu"
103103
// (used only with Golang's go-chi)
104-
const snake2camelCase = (str) => str.replace(/_([a-z])/g, (match, group1) => group1.toUpperCase());
104+
const snake2camelCase = (str) => str.replace(/_([a-z])/g, (match, group) => group.toUpperCase());
105105

106106
// "categoryId" => "category_id"
107107
// (used only with Python's FastAPI)

0 commit comments

Comments
 (0)