mirror of
https://github.com/docsifyjs/docsify.git
synced 2025-12-08 19:55:52 +00:00
fix: digit issue with sidebar (complete REVERT to old method)
This commit is contained in:
parent
f3a7929f07
commit
154abf59a6
@ -18,7 +18,8 @@ export function slugify(str) {
|
||||
.replace(/<[^>\d]+>/g, '')
|
||||
.replace(re, '')
|
||||
.replace(/\s/g, '-')
|
||||
.replace(/-+/g, '-');
|
||||
.replace(/-+/g, '-')
|
||||
.replace(/^(\d)/, '_$1');
|
||||
let count = cache[slug];
|
||||
|
||||
count = hasOwn.call(cache, slug) ? count + 1 : 0;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user