Skip to content

Commit e6a56e8

Browse files
wdportersergeylarionov-upwork
authored andcommitted
fix($shared-utils): Slugify em/en dash in urls (vuejs#2174)
1 parent 2744367 commit e6a56e8

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)