Skip to content

Commit

Permalink
Fix: remove quotes from generated urls
Browse files Browse the repository at this point in the history
  • Loading branch information
Tibowl committed Jan 17, 2022
1 parent 0e5b4f6 commit b041d44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/Utils.ts
Expand Up @@ -540,7 +540,7 @@ export function getLinkToGuide(guide: Guide, page: GuidePage): string {
export function urlify(input: string, shouldRemoveBrackets: boolean): string {
if (shouldRemoveBrackets)
input = removeBrackets(input)
return input.toLowerCase().replace(/\(|\)|:/g, "").trim().replace(/ +/g, "-")
return input.toLowerCase().replace(/[():"']/g, "").trim().replace(/ +/g, "-")
}

export function removeBrackets(input: string) {
Expand Down

0 comments on commit b041d44

Please sign in to comment.