Skip to content

Commit

Permalink
fix: digit issue with sidebar (complete REVERT to old method)
Browse files Browse the repository at this point in the history
  • Loading branch information
anikethsaha committed Mar 24, 2020
1 parent f3a7929 commit 154abf5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/render/slugify.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 154abf5

Please sign in to comment.