Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
damienallen committed May 26, 2024
1 parent c0f3b61 commit ae1339d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/stores.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ export class ContoursStore {
'FR',
'IE',
'IS',
'IT',
// 'IT',
'LU',
'NL',
'NO',
Expand Down
1 change: 1 addition & 0 deletions app/src/utils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export const slugify = (text: string) => {
.normalize('NFD') // Normalize accented characters
.replace(/[\u0300-\u036f]/g, '') // Remove diacritical marks
.toLowerCase() // Convert to lowercase
.replace('/', '-') // Replace slashes with hyphens
.replace(/[^a-z0-9\s-]/g, '') // Remove non-alphanumeric characters
.replace(/\s+/g, '-') // Replace spaces with hyphens
.replace(/-+/g, '-') // Remove consecutive hyphens
Expand Down

0 comments on commit ae1339d

Please sign in to comment.