Skip to content

Commit

Permalink
fix($shared-utils): Add curly quotes to rSpecial (#1934)
Browse files Browse the repository at this point in the history
  • Loading branch information
verythorough authored and kefranabg committed Oct 23, 2019
1 parent 890e85d commit 28a0ed9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@vuepress/shared-utils/src/slugify.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,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 28a0ed9

Please sign in to comment.