Skip to content

Commit

Permalink
fix: .md file extension regex
Browse files Browse the repository at this point in the history
  • Loading branch information
QingWei-Li committed Mar 25, 2017
1 parent e9bbfd4 commit 594299f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/route/hash.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

0 comments on commit 594299f

Please sign in to comment.