mirror of
https://github.com/docsifyjs/docsify.git
synced 2025-12-08 19:55:52 +00:00
fix: .md file extension regex
This commit is contained in:
parent
e9bbfd4c53
commit
594299ffbd
@ -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)
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user