Skip to content

Commit

Permalink
fix: unexpected warning when using non-ASCII chars as filename.
Browse files Browse the repository at this point in the history
  • Loading branch information
ulivz committed May 20, 2018
1 parent 33db7b7 commit 530912e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/webpack/markdownLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ module.exports = function (src) {

// check if relative links are valid
links && links.forEach(link => {
link = decodeURIComponent(link)
const shortname = link
.replace(/#.*$/, '')
.replace(/\.html$/, '.md')
Expand Down

0 comments on commit 530912e

Please sign in to comment.