We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3e9e484 commit cfef3faCopy full SHA for cfef3fa
src/helpers.ts
@@ -19,7 +19,8 @@ export const slugify = (text: string) =>
19
text
20
.toLowerCase()
21
.replace(/[/\\#,+()$~%!@^|`.'":;*?<>{}[\]]/g, "")
22
- .replace(/[ ]/g, "-");
+ .replace(/[ ]/g, "-")
23
+ .replace(/--/g, "");
24
25
export const regexify = (field: string) => ({ $regex: field, $options: "i" });
26
0 commit comments