Skip to content

Commit

Permalink
fix: キャメルケース変換関数の返り値を変えてしまったので修正(#183)
Browse files Browse the repository at this point in the history
  • Loading branch information
h-yoshikawa44 committed Sep 8, 2024
1 parent 3bec52d commit a55ea97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/toCamelCase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @returns キャメルケースに変換された文字列
*/
export const toCamelCase = (str: string) => {
if (!str.includes(' ')) return str;
if (!str.includes(' ')) return str.toLocaleLowerCase();

const lowerCase = str.toLocaleLowerCase();
return lowerCase
Expand Down

0 comments on commit a55ea97

Please sign in to comment.