Skip to content

Commit

Permalink
fix(dev): fix commit warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
nfroidure committed Dec 22, 2023
1 parent 3b90ef9 commit 6996e2e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/utils/ascii.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ export function toASCIIString(str: string): string {
.replace(/[àäâá]/g, 'a')
.replace(/[ç]/g, 'c')
.replace(/[\s\n\r]+/g, '-')
.replace(/[^a-z0-9\-]/g, '-')
.replace(/-[\-]+/g, '-')
.replace(/[\-]+$/g, '')
.replace(/^[\-]+/g, '');
.replace(/[^a-z0-9-]/g, '-')
.replace(/-[-]+/g, '-')
.replace(/[-]+$/g, '')
.replace(/^[-]+/g, '');
}

0 comments on commit 6996e2e

Please sign in to comment.