Skip to content

Commit 3f5074f

Browse files
committed
Remove "-" before URL generation
1 parent 5c750dc commit 3f5074f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/Utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -597,7 +597,7 @@ export function getLinkToGuide(guide: Guide, page: GuidePage): string {
597597
export function urlify(input: string, shouldRemoveBrackets: boolean): string {
598598
if (shouldRemoveBrackets)
599599
input = removeBrackets(input)
600-
return input.toLowerCase().replace(/[():"']/g, "").trim().replace(/ +/g, "-")
600+
return input.toLowerCase().replace(/[():"'-]/g, "").trim().replace(/ +/g, "-")
601601
}
602602

603603
export function removeBrackets(input: string) {

0 commit comments

Comments
 (0)