Skip to content

Commit

Permalink
fix($shared-utils): Slugify em/en dash in urls (#2174)
Browse files Browse the repository at this point in the history
  • Loading branch information
wdporter committed Feb 23, 2020
1 parent de64e81 commit 8d9968d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@vuepress/shared-utils/src/slugify.ts
Expand Up @@ -4,7 +4,7 @@ import { remove as removeDiacritics } from 'diacritics'

// eslint-disable-next-line no-control-regex
const rControl = /[\u0000-\u001f]/g
const rSpecial = /[\s~`!@#$%^&*()\-_+=[\]{}|\\;:"'β€œβ€β€˜β€™<>,.?/]+/g
const rSpecial = /[\s~`!@#$%^&*()\-_+=[\]{}|\\;:"'β€œβ€β€˜β€™β€“β€”<>,.?/]+/g

export = function slugify (str: string): string {
return removeDiacritics(str)
Expand Down

0 comments on commit 8d9968d

Please sign in to comment.