We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f3a7929 commit 154abf5Copy full SHA for 154abf5
src/core/render/slugify.js
@@ -18,7 +18,8 @@ export function slugify(str) {
18
.replace(/<[^>\d]+>/g, '')
19
.replace(re, '')
20
.replace(/\s/g, '-')
21
- .replace(/-+/g, '-');
+ .replace(/-+/g, '-')
22
+ .replace(/^(\d)/, '_$1');
23
let count = cache[slug];
24
25
count = hasOwn.call(cache, slug) ? count + 1 : 0;
0 commit comments