Skip to content

Commit

Permalink
🐛 Fix: url caption bug
Browse files Browse the repository at this point in the history
ISSUES CLOSED: #1
  • Loading branch information
Molunerfinn committed May 4, 2019
1 parent de74e81 commit eb69a34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/FileHandler.ts
Expand Up @@ -29,7 +29,7 @@ class FileHandler {
} else {
this.urlList[file] = {}
for (let i of urls) {
const url = i.match(/\!\[.*\]\((.*)\)/)[1]
const url = i.match(/\!\[.*\]\((.*?)( ".*")?\)/)[1]
this.urlList[file][url] = url
}
}
Expand Down

0 comments on commit eb69a34

Please sign in to comment.