Skip to content

Commit

Permalink
fix: Capture the url type error
Browse files Browse the repository at this point in the history
  • Loading branch information
樊冬 committed May 7, 2019
1 parent fae625b commit bed8773
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dom-to-image.js
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@
}

function parseExtension(url) {
var match = /\.([^\.\/]*?)$/g.exec(url);
var match = /\.([^\.\/]*?)\?/g.exec(url);
if (match) return match[1];
else return '';
}
Expand Down

0 comments on commit bed8773

Please sign in to comment.