fix: digit issue with sidebar (complete REVERT to old method)

This commit is contained in:
anikethsaha 2020-03-24 18:47:43 +05:30
parent f3a7929f07
commit 154abf59a6

View File

@ -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;