Skip to content

Commit

Permalink
Merge pull request pandao#281 from comdeng/patch-1
Browse files Browse the repository at this point in the history
bugfixed:图片格式为大写时不能上传
  • Loading branch information
pandao authored May 4, 2019
2 parents 00573b3 + f96ace3 commit 9f90728
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/image-dialog/image-dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@

fileInput.bind("change", function() {
var fileName = fileInput.val();
var isImage = new RegExp("(\\.(" + settings.imageFormats.join("|") + "))$"); // /(\.(webp|jpg|jpeg|gif|bmp|png))$/
var isImage = new RegExp("(\\.(" + settings.imageFormats.join("|") + "))$", "i"); // /(\.(webp|jpg|jpeg|gif|bmp|png))$/

if (fileName === "")
{
Expand Down

0 comments on commit 9f90728

Please sign in to comment.