Skip to content

Commit 364581b

Browse files
committed
Change urlify
1 parent 0a5743b commit 364581b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

utils/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ export function getLinkToGuide(guide: Guide, page: GuidePage): string {
156156
export function urlify(input: string, shouldRemoveBrackets: boolean): string {
157157
if (shouldRemoveBrackets)
158158
input = removeBrackets(input)
159-
return input.toLowerCase().replace(/[():"']/g, "").trim().replace(/ +/g, "-")
159+
return input.toLowerCase().replace(/[():"'-]/g, "").trim().replace(/ +/g, "-")
160160
}
161161

162162
export function removeBrackets(input: string) {

0 commit comments

Comments
 (0)