Skip to content

Commit ee54141

Browse files
committed
bump: 3.6.5
1 parent 51832d3 commit ee54141

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

CHANGELOG.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
# Changelog
22

3-
## 3.6.4 / 2017-04-28
3+
## 3.6.5 / 2017-04-28
4+
5+
* fix(util): fix crash, fixed ([#154](https://github.com/QingWei-Li/docsify/issues/154)
46

7+
## 3.6.4 / 2017-04-28
58

69
* fix(util): correctly clean up duplicate slashes, fixed ([#153](https://github.com/QingWei-Li/docsify/issues/153)
710

lib/docsify.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,9 @@ var getParentPath = cached(function (path) {
314314
});
315315

316316
var cleanPath = cached(function (path) {
317-
return path.replace(/([^:])\/{2,}/g, '$1/')
317+
return path
318+
.replace(/^\/+/, '/')
319+
.replace(/([^:])\/{2,}/g, '$1/')
318320
});
319321

320322
function replaceHash (path) {

0 commit comments

Comments
 (0)