Browse Source

Merge pull request #281 from comdeng/patch-1

bugfixed:图片格式为大写时不能上传
master
pandao 6 years ago
committed by GitHub
parent
commit
9f90728144
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      plugins/image-dialog/image-dialog.js

2
plugins/image-dialog/image-dialog.js

@ -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 === "")
{

Loading…
Cancel
Save