Skip to content

Commit 04b2a99

Browse files
committed
adding back .tolowercase in slugify to have test pass again
1 parent fd15403 commit 04b2a99

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

server/utils/readme.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,7 @@ export function stripHtmlTags(text: string): string {
220220
export function slugify(text: string): string {
221221
return stripHtmlTags(text)
222222
.replace(/ ?/g, '') // remove non breaking spaces
223+
.toLowerCase()
223224
.trim()
224225
.replace(/\s+/g, '-') // Spaces to hyphens
225226
.replace(/[^\w\u4e00-\u9fff\u3040-\u309f\u30a0-\u30ff-]/g, '') // Keep alphanumeric, CJK, hyphens

0 commit comments

Comments
 (0)