Skip to content

Commit 154abf5

Browse files
committed
fix: digit issue with sidebar (complete REVERT to old method)
1 parent f3a7929 commit 154abf5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/core/render/slugify.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ export function slugify(str) {
1818
.replace(/<[^>\d]+>/g, '')
1919
.replace(re, '')
2020
.replace(/\s/g, '-')
21-
.replace(/-+/g, '-');
21+
.replace(/-+/g, '-')
22+
.replace(/^(\d)/, '_$1');
2223
let count = cache[slug];
2324

2425
count = hasOwn.call(cache, slug) ? count + 1 : 0;

0 commit comments

Comments
 (0)