Skip to content

Commit b041d44

Browse files
committed
Fix: remove quotes from generated urls
1 parent 0e5b4f6 commit b041d44

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
@@ -540,7 +540,7 @@ export function getLinkToGuide(guide: Guide, page: GuidePage): string {
540540
export function urlify(input: string, shouldRemoveBrackets: boolean): string {
541541
if (shouldRemoveBrackets)
542542
input = removeBrackets(input)
543-
return input.toLowerCase().replace(/\(|\)|:/g, "").trim().replace(/ +/g, "-")
543+
return input.toLowerCase().replace(/[():"']/g, "").trim().replace(/ +/g, "-")
544544
}
545545

546546
export function removeBrackets(input: string) {

0 commit comments

Comments
 (0)