Skip to content

Commit

Permalink
chore(eppo): Simplify flag key generation (#4041)
Browse files Browse the repository at this point in the history
  • Loading branch information
felipecsl authored Jan 13, 2025
1 parent 5725a90 commit 73a6de2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions apps/eppo/src/locations/EntryEditor/EntryEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ const generateFlagKey = (entryName: string) => {
const lowerSnakeCaseEntryName = entryName
.replace(/\s+/g, '-')
.replace(/[^a-zA-Z0-9-]/g, '')
.replace(/-+/g, '-')
.toLowerCase();
return `${lowerSnakeCaseEntryName}-${Date.now()}`;
};
Expand Down

0 comments on commit 73a6de2

Please sign in to comment.