Skip to content

Commit

Permalink
fix image url match
Browse files Browse the repository at this point in the history
  • Loading branch information
jhchen committed Aug 2, 2016
1 parent 85ac6eb commit c00d1b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion formats/image.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class Image extends Embed {
}

static match(url) {
return /\.(jpe?g|gif|png)$/.test(url);
return /\.(jpe?g|gif|png)$/.test(url) || /^data:image\/.+;base64/.test(url);
}

static sanitize(url) {
Expand Down

0 comments on commit c00d1b7

Please sign in to comment.