Skip to content

Commit

Permalink
Keep nam
Browse files Browse the repository at this point in the history
  • Loading branch information
zoontek committed Jan 13, 2025
1 parent ed3ec7e commit a2ea3f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hyphenateName.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ import { memoizeOne } from "./utils";

const uppercasePattern = /([A-Z])/g;

export const hyphenateName = memoizeOne((value: string): string =>
value.replace(uppercasePattern, "-$1").toLowerCase(),
export const hyphenateName = memoizeOne((name: string): string =>
name.replace(uppercasePattern, "-$1").toLowerCase(),
);

0 comments on commit a2ea3f1

Please sign in to comment.