Skip to content

Commit c15eda1

Browse files
committed
Fix urlify
1 parent fbdd2f7 commit c15eda1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/utils/Utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -683,7 +683,7 @@ export function getLinkToGuide(guide: Guide, page: GuidePage): string {
683683
export function urlify(input: string, shouldRemoveBrackets: boolean): string {
684684
if (shouldRemoveBrackets)
685685
input = removeBrackets(input)
686-
return input.toLowerCase().replace(/[():"'-]/g, "").trim().replace(/ +/g, "-")
686+
return input.toLowerCase().replace(/[():"'?,-]/g, "").trim().replace(/ +/g, "-")
687687
}
688688

689689
export function removeBrackets(input: string) {

0 commit comments

Comments
 (0)