Skip to content

Commit 28a0ed9

Browse files
verythoroughkefranabg
authored andcommitted
fix($shared-utils): Add curly quotes to rSpecial (#1934)
1 parent 890e85d commit 28a0ed9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/@vuepress/shared-utils/src/slugify.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { remove as removeDiacritics } from 'diacritics'
55

66
// eslint-disable-next-line no-control-regex
77
const rControl = /[\u0000-\u001f]/g
8-
const rSpecial = /[\s~`!@#$%^&*()\-_+=[\]{}|\\;:"'<>,.?/]+/g
8+
const rSpecial = /[\s~`!@#$%^&*()\-_+=[\]{}|\\;:"'<>,.?/]+/g
99

1010
export = function slugify (str: string): string {
1111
return removeDiacritics(str)

0 commit comments

Comments
 (0)