Skip to content

Commit ca816b2

Browse files
committed
feat: added comments for slugify
1 parent 1cc3367 commit ca816b2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/utils.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@ export const removeFrontMatter = (content: string) => {
1818
return content;
1919
};
2020

21+
/**
22+
* Converts a string to a slug.
23+
*
24+
* @param text - The string to convert to a slug.
25+
* @returns The slugified string.
26+
*/
2127
export const slugify = (text: string) => {
2228
return _slugify(text, { lower: true, strict: true });
2329
};

0 commit comments

Comments
 (0)