fix: .md file extension regex
This commit is contained in:
parent
e9bbfd4c53
commit
594299ffbd
1 changed files with 1 additions and 1 deletions
|
|
@ -70,7 +70,7 @@ export function toURL (path, params) {
|
||||||
|
|
||||||
route.query = merge({}, route.query, params)
|
route.query = merge({}, route.query, params)
|
||||||
path = route.path + stringifyQuery(route.query)
|
path = route.path + stringifyQuery(route.query)
|
||||||
path = path.replace(/\.md/g, '')
|
path = path.replace(/\.md(\?)|\.md$/, '$1')
|
||||||
|
|
||||||
return cleanPath('#/' + path)
|
return cleanPath('#/' + path)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue