mirror of
https://github.com/zhigang1992/docsify.git
synced 2026-04-23 12:56:53 +08:00
bump 1.5.2
This commit is contained in:
@@ -127,7 +127,9 @@ function slugify (string) {
|
||||
var slug = string.trim()
|
||||
.replace(/<[^>\d]+>/g, '')
|
||||
.replace(re, '')
|
||||
.replace(/\s/g, replacement);
|
||||
.replace(/\s/g, replacement)
|
||||
.replace(/-+/g, replacement)
|
||||
.replace(/^(\d)/, '_$1');
|
||||
var occurrences = slugify.occurrences[slug];
|
||||
|
||||
if (slugify.occurrences.hasOwnProperty(slug)) {
|
||||
|
||||
Reference in New Issue
Block a user