Skip to content

Commit

Permalink
slugify in strict mode
Browse files Browse the repository at this point in the history
  • Loading branch information
ArhanChaudhary committed Jul 16, 2024
1 parent 01410be commit 7027470
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/assets/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import slugify from "slugify";
export function mySlugify(str: string) {
return str
.split("/")
.map((val) => slugify(val, { lower: true }))
.map((val) => slugify(val, { lower: true, strict: true }))
.join("/");
}

Expand Down

0 comments on commit 7027470

Please sign in to comment.