Skip to content

Commit 3006ee0

Browse files
authored
fix slugification (#211)
1 parent 81cfea7 commit 3006ee0

File tree

1 file changed

+1
-2
lines changed
  • packages/site-kit/src/lib/markdown

1 file changed

+1
-2
lines changed

packages/site-kit/src/lib/markdown/utils.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,8 @@ export function escape(html: string, encode = false) {
4949

5050
export function slugify(title: string) {
5151
return title
52-
.toLowerCase()
5352
.replace(/&.+;/g, '')
54-
.replace(/[^a-z0-9-$(.):<>]/g, '-')
53+
.replace(/[^a-zA-Z0-9-$(.):]/g, '-')
5554
.replace(/-{2,}/g, '-')
5655
.replace(/^-/, '')
5756
.replace(/-$/, '');

0 commit comments

Comments
 (0)