mirror of
https://github.com/zhigang1992/docsify.git
synced 2026-04-22 12:06:08 +08:00
fix: .md file extension regex
This commit is contained in:
@@ -70,7 +70,7 @@ export function toURL (path, params) {
|
||||
|
||||
route.query = merge({}, route.query, params)
|
||||
path = route.path + stringifyQuery(route.query)
|
||||
path = path.replace(/\.md/g, '')
|
||||
path = path.replace(/\.md(\?)|\.md$/, '$1')
|
||||
|
||||
return cleanPath('#/' + path)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user