From 93652515baf58ae6065bb268cfc41ab06c1e2d47 Mon Sep 17 00:00:00 2001 From: Jessica Parsons Date: Wed, 9 Oct 2019 16:27:35 -0700 Subject: [PATCH] fix($shared-utils): Add curly quotes to rSpecial --- packages/@vuepress/shared-utils/src/slugify.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/@vuepress/shared-utils/src/slugify.ts b/packages/@vuepress/shared-utils/src/slugify.ts index 5b6801aeaf..f002b02943 100644 --- a/packages/@vuepress/shared-utils/src/slugify.ts +++ b/packages/@vuepress/shared-utils/src/slugify.ts @@ -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)