Skip to content

Commit 3e77f05

Browse files
authored
remove the extra spaces
1 parent 606fa9b commit 3e77f05

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

lib/slugifyMarkdownHeadline.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@ export default function slugifyMarkdownHeadline(
1010
if (typeof markdownChildren === 'string')
1111
return slugify(markdownChildren, {
1212
lower: true,
13-
1413
trim: true,
15-
1614
remove: /[*+~()'"!]/g,
1715
});
1816

@@ -33,18 +31,13 @@ export default function slugifyMarkdownHeadline(
3331
if (metaSlug) return metaSlug;
3432

3533
const joinedChildren = markdownChildren
36-
3734
.filter((child) => typeof child === 'string')
38-
3935
.map((string) => string.replace(FRAGMENT_REGEX, ''))
40-
4136
.join(' ');
4237

4338
const slug = slugify(joinedChildren, {
4439
lower: true,
45-
4640
trim: true,
47-
4841
remove: /[*+~()'"!]/g,
4942
});
5043

0 commit comments

Comments
 (0)