Skip to content

Commit 8d9968d

Browse files
authored
fix($shared-utils): Slugify em/en dash in urls (#2174)
1 parent de64e81 commit 8d9968d

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
@@ -4,7 +4,7 @@ import { remove as removeDiacritics } from 'diacritics'
44

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

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

0 commit comments

Comments
 (0)