Skip to content

Commit cec71f2

Browse files
Merge branch 'vuejs:main' into main
2 parents 42f3562 + 262b5a1 commit cec71f2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/api/api.data.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,9 @@ function slugify(text: string): string {
8787
// Replace special characters
8888
.replace(/[\s~`!@#$%^&*()\-_+=[\]{}|\\;:"'<>,.?/]+/g, '-')
8989
// Remove continuous separators
90-
.replace(/\-{2,}/g, '-')
90+
.replace(/-{2,}/g, '-')
9191
// Remove prefixing and trailing separators
92-
.replace(/^\-+|\-+$/g, '')
92+
.replace(/^-+|-+$/g, '')
9393
// ensure it doesn't start with a number (#121)
9494
.replace(/^(\d)/, '_$1')
9595
// lowercase

0 commit comments

Comments
 (0)