Skip to content

Commit

Permalink
fix: linting
Browse files Browse the repository at this point in the history
  • Loading branch information
arielweinberger committed Apr 28, 2024
1 parent f6a1782 commit 6012bcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/common/src/utils/slugify.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export function slugify(str: string) {
str = str.replace(/^\s+|\s+$/g, ""); // trim leading/trailing white space
str = str.replace(/(^\s+|\s+$)/g, ""); // trim leading/trailing white space
str = str.toLowerCase(); // convert string to lowercase
str = str
.replace(/[^a-z0-9 -]/g, "") // remove any non-alphanumeric characters
Expand Down

0 comments on commit 6012bcc

Please sign in to comment.