We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 42f3562 + 262b5a1 commit cec71f2Copy full SHA for cec71f2
src/api/api.data.ts
@@ -87,9 +87,9 @@ function slugify(text: string): string {
87
// Replace special characters
88
.replace(/[\s~`!@#$%^&*()\-_+=[\]{}|\\;:"'<>,.?/]+/g, '-')
89
// Remove continuous separators
90
- .replace(/\-{2,}/g, '-')
+ .replace(/-{2,}/g, '-')
91
// Remove prefixing and trailing separators
92
- .replace(/^\-+|\-+$/g, '')
+ .replace(/^-+|-+$/g, '')
93
// ensure it doesn't start with a number (#121)
94
.replace(/^(\d)/, '_$1')
95
// lowercase
0 commit comments